i changed the date of datetimepicker format to yyyy-mm-dd in custom format...but it displays 2009-00-22...the month part is not showing the month of the exact month..how to change the format of the date??thanks
change date formathow to change the date timepicker date format
Page 1 of 1
3 Replies - 4460 Views - Last Post: 23 June 2009 - 01:26 PM
Replies To: change date format
#2
Re: change date format
Posted 22 June 2009 - 02:55 AM
Hi,
You can try this:
You can try this:
DateTimePicker1.CustomFormat = "YYYY-MM-DD"
#3
Re: change date format
Posted 22 June 2009 - 10:44 PM
i used the MM instead of mm..it works...i wonder how small letter don work here..nawys thanks
#4
Re: change date format
Posted 23 June 2009 - 01:26 PM
You have to use it from the list of accepted formats.
m = one- or two-digit minutes
mm = two-digit MINUTES
M = one- or two-digit month
MM = two-digit MONTH
MMM = three-letter month abbreviation
MMMM = full month name
m = one- or two-digit minutes
mm = two-digit MINUTES
M = one- or two-digit month
MM = two-digit MONTH
MMM = three-letter month abbreviation
MMMM = full month name
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|