A
anna.predslava@gmail.com
Guest
Hello all,
I need to set the current date in CCYYMMDD (ISO) format as the default
value for a field in MS SQL 2000. Basically, when a new record is
inserted into the table the current date needs to be written to a
field in CCYYMMDD (ISO) format.
Please forgive my ingorance if this is a stupid question, I'm from the
UNIX world. MYSQL uses ISO dates by default.
Currently,
- I set the dtate type to (char)
- I set the value to:
GETDATE()
- Then I get this:
'Oct 26 2007 10:27AM'
- I want to get this:
'20071026'
I know MSSQL can read ISO dates,
Does MSSQL have a way to create and store dates in ISO format
(CCYYMMDD)?
Thanks & Warm Regards,
Anna <<<3
I need to set the current date in CCYYMMDD (ISO) format as the default
value for a field in MS SQL 2000. Basically, when a new record is
inserted into the table the current date needs to be written to a
field in CCYYMMDD (ISO) format.
Please forgive my ingorance if this is a stupid question, I'm from the
UNIX world. MYSQL uses ISO dates by default.
Currently,
- I set the dtate type to (char)
- I set the value to:
GETDATE()
- Then I get this:
'Oct 26 2007 10:27AM'
- I want to get this:
'20071026'
I know MSSQL can read ISO dates,
Does MSSQL have a way to create and store dates in ISO format
(CCYYMMDD)?
Thanks & Warm Regards,
Anna <<<3