Link to home
Start Free TrialLog in
Avatar of huhu
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
Avatar of PaulHews
PaulHews
Flag of Canada image

Change the format property to 3 - dtpCustom

Then change the CustomFormat property to dd-mm-yyyy hh:mm tt
ASKER CERTIFIED SOLUTION
Avatar of PaulHews
PaulHews
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
dtpicker control doesn't store time... but this should work:

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