Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date format 1

Status
Not open for further replies.

696796

Programmer
Aug 3, 2004
218
GB
Hi,

VB makes my dates from my datetimepicker into the format mm/dd/yyyy instead of dd/mm/yyyy like i want. Heres how i put the value into a variable to use:-

Dim dtResponseReceivedTo As Date = dtpTo.Value.Date

I need dd/mm/yyyy, this is how its stored in my access97 database - am usingvis studio 2003

Thanks, alex
 
In the properties window for your datetimepicker control, change the "Format" property to "Custom", and set the "CustomFormat" property to "dd/mm/yyyy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top