|
Hi John,
I use TO_CHAR in my SQL
statements whenever I need to query/update/retrieve the tables. I pass the
format in which I am sending the date to the query and TO_CHAR transforms it
accordingly. (The query would only be done on the mm/dd/yy and not mm/dd/yy
hh:... this isuseful if I need to query just on the day.). I am not sure if
there is any corresponding fn in MSSQL. There is also a SYSDATE which returns
the date in the format which you want.
To format the date, I use the
SimpleDateFormatter passing it the pattern in which i need the date to be
converted. I am not sure whether you can pass a string to it so that it
constructs a Date automatically.
I hope this would be of some help...
Raaj.
Have a merry Christmas.
----- Original Message -----
|
- Date formatting for MSSQL John McDonald
- Re: Date formatting for MSSQL Rajendra Mishra
- Re: Date formatting for MSSQL Surabhi
- Re: Date formatting for MSSQL RVASUDEV
