Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to display dates in client machine date format and save in to the database in server datetime format?

How can i achieve this? Pls help

Thanks.
kasunt
Posted

It works by itself, if you use datetime objects. I assume this is a client side C# app, not a website, given that you didn't say it was or mark it as ASP.NET.
 
Share this answer
 
While displaying date in client machine date format you have to use Javascript (Client side scripting).

And yes, as per C.Graus it should me marked as ASP.net as well
 
Share this answer
 
It's a asp.net web application using VS2008 with sql server 2005 integration
 
Share this answer
 
Comments
Christian Graus 10-Aug-10 0:18am    
Don't push answer to add detail, edit your post.
Toli Cuturicu 10-Aug-10 10:25am    
Reason for my vote of 1
fake 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