I have a column which is of datetime data type. It contains few entries. So while getting the value from the select statement I want to output with Time zone. Please help me
for example
2007-05-08 12:35:29.1234567 +05:30 (GMT)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Cast it to
dtaetimeoffsetlikeEDIT:
you can then use
SWITCHOFFSETto get into the specified timezone. For your exampleResults in
2011-11-24 23:26:30.0600000 +05:30