Click here to Skip to main content
15,903,201 members
Home / Discussions / Database
   

Database

 
GeneralRe: -- Is it possible??? -- Pin
Eric Dahlvang24-May-06 9:31
Eric Dahlvang24-May-06 9:31 
QuestionPls Help MS Access Pin
achrafus23-May-06 8:46
achrafus23-May-06 8:46 
QuestionSQL Express to Access Pin
Kschuler23-May-06 8:29
Kschuler23-May-06 8:29 
AnswerRe: SQL Express to Access Pin
Eric Dahlvang23-May-06 9:29
Eric Dahlvang23-May-06 9:29 
QuestionBest way to get Today in DateTime Pin
Rob Philpott23-May-06 7:07
Rob Philpott23-May-06 7:07 
AnswerRe: Best way to get Today in DateTime Pin
Eric Dahlvang23-May-06 8:00
Eric Dahlvang23-May-06 8:00 
GeneralRe: Best way to get Today in DateTime Pin
Rob Philpott23-May-06 8:07
Rob Philpott23-May-06 8:07 
GeneralRe: Best way to get Today in DateTime Pin
Eric Dahlvang23-May-06 8:29
Eric Dahlvang23-May-06 8:29 
Rob Philpott wrote:
I've never quite got the hang of the date conversion functions with the arbitary number (101) denoting something.


It isn't quite arbitrary. 101 is a parameter for USA standard. It might be better to use 112, which is the ISO standard. But, everything I've developed so far is for the US only, so I don't know much about international standards.

Colin Angus Mackay and I had a little exchange about similar date stuff a few posts down: http://www.codeproject.com/script/comments/forums.asp?forumid=1725&select=1499243#xx1499243xx[^]

----
For more info, look up CAST and CONVERT in SQL Server Books Online.

In the table, the two columns on the left represent the style values for datetime or smalldatetime conversion to character data. Add 100 to a style value to get a four-place year that includes the century (yyyy).

Without century (yy) With century (yyyy)
- 0 or 100 (*) Default mon dd yyyy hh:miAM (or PM)
1 101 USA mm/dd/yy
2 102 ANSI yy.mm.dd
3 103 British/French dd/mm/yy
4 104 German dd.mm.yy
5 105 Italian dd-mm-yy
6 106 - dd mon yy
7 107 - Mon dd, yy
8 108 - hh:mm:ss
- 9 or 109 (*) Default + milliseconds mon dd yyyy hh:mi:ss:mmmAM (or PM)
10 110 USA mm-dd-yy
11 111 JAPAN yy/mm/dd
12 112 ISO yymmdd
- 13 or 113 (*) Europe default + milliseconds dd mon yyyy hh:mm:ss:mmm(24h)
14 114 - hh:mi:ss:mmm(24h)
- 20 or 120 (*) ODBC canonical yyyy-mm-dd hh:mi:ss(24h)
- 21 or 121 (*) ODBC canonical (with milliseconds) yyyy-mm-dd hh:mi:ss.mmm(24h)
- 126(***) ISO8601 yyyy-mm-dd Thh:mm:ss:mmm(no spaces)
- 130* Kuwaiti dd mon yyyy hh:mi:ss:mmmAM
- 131* Kuwaiti dd/mm/yy hh:mi:ss:mmmAM


----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin

QuestionInserting Image in my Report (ReportViewer) Pin
anderslundsgard23-May-06 4:28
anderslundsgard23-May-06 4:28 
QuestionProgrammatically Updating a Table with Detail from derived from another Table Pin
AnneThorne23-May-06 3:45
AnneThorne23-May-06 3:45 
QuestionData base connection problem Pin
iz723-May-06 2:28
iz723-May-06 2:28 
QuestionSQL Server does not exist or access denied [modified] Pin
sarah_chandran23-May-06 0:57
sarah_chandran23-May-06 0:57 
AnswerRe: SQL Server does not exist or access denied [modified] Pin
sathish s23-May-06 2:11
sathish s23-May-06 2:11 
GeneralRe: SQL Server does not exist or access denied [modified] Pin
sarah_chandran23-May-06 3:14
sarah_chandran23-May-06 3:14 
Questionwriting query using comma separator Pin
dayakar_dn23-May-06 0:09
dayakar_dn23-May-06 0:09 
AnswerRe: writing query using comma separator [modified] Pin
Frank Kerrigan23-May-06 0:46
Frank Kerrigan23-May-06 0:46 
Questionado.net Pin
ravikiranreddydharmannagari22-May-06 23:22
ravikiranreddydharmannagari22-May-06 23:22 
AnswerRe: ado.net Pin
dayakar_dn23-May-06 1:49
dayakar_dn23-May-06 1:49 
Questionhow to make one column as a index Pin
dayakar_dn22-May-06 20:58
dayakar_dn22-May-06 20:58 
AnswerRe: how to make one column as a index Pin
Eric Dahlvang23-May-06 9:21
Eric Dahlvang23-May-06 9:21 
QuestionAction Queries [modified] Pin
xfitr222-May-06 5:31
xfitr222-May-06 5:31 
AnswerRe: Action Queries [modified] Pin
Colin Angus Mackay22-May-06 6:49
Colin Angus Mackay22-May-06 6:49 
GeneralRe: Action Queries [modified] Pin
xfitr222-May-06 7:31
xfitr222-May-06 7:31 
QuestionSQL Performance problem need help Pin
Pallav Deshmukh22-May-06 3:32
Pallav Deshmukh22-May-06 3:32 
AnswerRe: SQL Performance problem need help Pin
woudwijk22-May-06 5:23
woudwijk22-May-06 5:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.