Click here to Skip to main content
15,906,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using text to take date from calender (javascript Calender)


It Puts date into textbox "dd/MM/yyyy"


I want to convert into "MM/dd/yyyy" before saving into database

I am working vb.net with asp.net (vs2005)
Posted

 
Share this answer
 
Convert.ToDateTime(txtDate.Text).ToString("MM/dd/yyyy")
 
Share this answer
 
try to use the
convert.DateTime("Your text").ToString("dd/MM/yyyy");
 
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