Re: DateTime Picker Help
- From: "Alastair MacFarlane" <anonymous@xxxxxxxxxxxxx>
- Date: Sun, 23 Apr 2006 13:17:55 +0100
David,
Thanks for the quick reply. I should've noticed that one. The problem I also
have is that the value is written back to the database in US date format
when the Access database is in UK format and the DTPicker control (thanks to
your help) presents it in UK format. This is done using an SQL script but I
have raised this as another post.
Thanks for your help.
Alastair
"David Youngblood" <dwy@xxxxxxxxx> wrote in message
news:eZsK%23esZGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
"Alastair MacFarlane" <anonymous@xxxxxxxxxxxxx>...
I am trying (and failing) to set the date format of a DTPicker control to
UK
date format (dd/mm/yyyy), so I thought you would do it like this (where
DTPickFeeDate is the DTPicker Control):
DTPickFeeDate.Format = dtpCustom
DTPickFeeDate.CustomFormat = "dd/mm/yyyy"
DTPickFeeDate.Value = Date
Unexpectedly I get 23/00/2006 as the result.
The small "mm" is ussed for minutes. You need the capital "MM" for month.
DTPickFeeDate.CustomFormat = "dd/MM/yyyy"
David
.
- References:
- DateTime Picker Help
- From: Alastair MacFarlane
- Re: DateTime Picker Help
- From: David Youngblood
- DateTime Picker Help
- Prev by Date: Selecting next node in treeview control
- Next by Date: Re: Can't access private member of form module from within the module?
- Previous by thread: Re: DateTime Picker Help
- Next by thread: Selecting next node in treeview control
- Index(es):
Relevant Pages
|