date format

K

krishna murthy

hi,
I have doubt i.e I would like to change the date
format.I have used the datetimepicker control in my
application.when ever i select by deafault it is giving
mm/dd/yyyy but i need the dd/mm/yyyy format.


Regards,
krishna.
 
C

Cor Ligthert

Kirshna,

This is working accoording to the datetime setting in your computer language
culture setting in the config.

I would first look there before you start doing all things in the program
making it language dependend.

I hope this helps

Cor
 
H

Herfried K. Wagner [MVP]

krishna murthy said:
I have doubt i.e I would like to change the date
format.I have used the datetimepicker control in my
application.when ever i select by deafault it is giving
mm/dd/yyyy but i need the dd/mm/yyyy format.

Set the datetimepicker's 'Format' property to 'Custom' and assign an
appropriate date/time format string to its 'CustomFormat' property.

Date and Time Format Strings
<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconDateTimeFormatStrings.asp>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top