huhu
asked on
DTPicker Format
I use DTPicker in my form. The format is like 06/11/99, time is not shown.
I want to change the format as
11-Jun-99 9:45 am.
I tried to define the custom format in the property page, but i failed.
Can someone tell me how to achieve this
I want to change the format as
11-Jun-99 9:45 am.
I tried to define the custom format in the property page, but i failed.
Can someone tell me how to achieve this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
dtpicker control doesn't store time... but this should work:
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "dd-mm-yy"
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "dd-mm-yy"
oops, PaulHews is right ;) i was using the wrong format string (been working w/ java too much)
>PaulHews is right
Well I'm close anyway. ;)
>11-Jun-99 9:45 am
format: dd-MMM-yy hh:mm tt
Well I'm close anyway. ;)
>11-Jun-99 9:45 am
format: dd-MMM-yy hh:mm tt
Then change the CustomFormat property to dd-mm-yyyy hh:mm tt