Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone help me out in the changeing date format function?

my date is in mm/dd/yyyy format and after conversion i want the date in yyyy-mm-dd format.

Please help me out.
Thanks in advance.
Posted

In C, you'd have to use sprintf to create a date in the format you want. Too bad you're using C, it's much easier in C#, or even C++.
 
Share this answer
 
Thanks for the reply.

I did it. :-O
 
Share this answer
 
v2

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