Re: Date data type - Grant,Jon, Steve,Bob A, Jim & Comet Woman


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Bob A on October 19, 2009 at 12:23:00:

In Reply to: Re: Date data type - Grant,Jon, Steve,Bob A, Jim & Comet Woman posted by Grant Foraker on October 16, 2009 at 11:33:25:

Actually YYYY-MM-DD has been used as the standard in both Sweden and Japan for decades now.... and has been the standard from the International Standard #8601 from the International Organization for Standardization (ISO) (see: http://en.wikipedia.org/wiki/ISO_8601 )

apropos ISO 8601, includes a "week" format of YYYY-W##-D (where up to W53 is possible)... this is used extensively in Europe, where I've seen ordinary 4 function calculators that will do the date conversion from dd.mm.yyyy to YYYY-W##-D

In DB2/400 IBM uses the following:
*MDY which is MM/DD/YY *MDY0 which is MMDDYY
*DMY which is DD/MM/YY *DMY0 which is DDMMYY
*YMD which is YY/MM/DD *YMD0 which is YYMMDD
*JUL which is YY/JJJ *JUL0 which is YYJJJ
*USA which is MM/DD/YYYY *USA0 which is MMDDYYYY
*EUR which is DD.MM.YYYY *EUR0 which is DDMMYYYY
*JIS which is YYYY-MM-DD *JIS0 which is YYYYMMDD (Japanese Information Standard)
*ISO which is YYYY-MM-DD *JIS0 which is YYYYMMDD
note that the post Y2K dates (*USA, *EUR, *JIS, *ISO) have delimiters that indicate what the format is when you see the date... pre Y2K there were Editing Masks that would override the USA-centric "slash" ("oblique stroke" to the Eurocentric) I'm not sure how much COMET is used in Europe, but Canada surely uses dd.mm.yyyy

the "option 7" for Num2Date would be great.... "getting it in one slurp" would surely be useful, if only for sorting purposes.

#####.ffffffff where ##### is the existing COMET serial date and 8 digit fraction is sufficient for showing down to the millisecond (as there are 24*60*60*1000 = 86400000 milliseconds/day and the inverse is 1.15e-8)I have routines to compute this, and also convert to MS format, for export as .csv files to Excel... I'm getting around to converting them to IB/MTB

finally, I've never seen YYYYDDMM in use anywhere.... willing to bet at least $2.56 that nobody does....

Bob "A"



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]