June 13, 2008 at 10:31 am
Hi,
I am attempting to convert some datetime data into a varchar in the ISO8601 format with timezone.
Executing the following two statements on my platform returns the same result however I according to BOL a Z should be placed at the end of style 127.
select convert(varchar,getDate(),127)
select convert(varchar,getDate(),126)
Can anyone offer suggestions?
Many Thanks,
John
June 13, 2008 at 10:54 pm
If you notice, there's a (6) footnote marker... The style with the "Z" is valid only when converting from VARCHAR to DATETIME... not when converting DATETIME to VARCHAR. Dunno why they did that...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply