Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how we can change the datetime format on hosting name.
the hosting server is in Australia datetime format but in application i use the US datetime format in my coding .it's give the error not valid datetime format.
so...how we can change the datetime format on hosting name
please help me
that will be greate help
Posted

1 solution

You can store date in UTC format in database using getutcdate() function.
If you want EST datatime than you can apply,

SQL
DATEADD(HH,-5,modifieddate) as modifieddate


Which will gives you EST date.

Hope this may help you...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900