Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am sending the date in string format ( ' dd/mm/yyyy') it is saved properly but in (mm/dd/yyyyy) format

on selecting for updating the recod i want it in dd/mm/yyyy format how can i convert date from databse to this format to set it to date text feild in dd/mm/yyyy format?
Posted

You usually find all you need from the documentation :-)
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx[^]
 
Share this answer
 
Comments
Aarti Meswania 5-Apr-13 7:41am    
5+ :)
Member 9410081 6-Apr-13 3:14am    
i have seebn this but not yet not got the solution
use format(datevariable,dd/mm/yyyy). you can set a it from your control panel, regional settings. http://www.esn-soft.com/blogs
 
Share this answer
 
Comments
Member 9410081 6-Apr-13 3:32am    
i have seebn this but not yet not got the solution
Format(mVoucherLockDate, "dd/mm/yyyy"). This one is copied from one of my executing code.
 
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