[DUG] date format help in TDateTimePicker

Ross Levis ross at stationplaylist.com
Mon Aug 27 20:42:24 NZST 2007


I believe D5 doesn't have the Format property for TDateTimePicker, which was
added in D6 or D7.  I had the same problem.  You need to do this.

 

DateTime_SetFormat(DateTimePicker1.Handle, pChar('dd-MMMM-yyyy'));

 

Ross.

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Jeremy Coulter
Sent: Monday, 27 August 2007 18:02
To: 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] date format help in TDateTimePicker

 

have you trid the "FORMAT" property of the control??  in your case it will
be dd-MMMM-yyyy

 

Jeremy

 

  _____  

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Vikas...
Sent: 27 August 2007 17:25
To: delphi at delphi.org.nz
Subject: [DUG] date format help in TDateTimePicker


Hi 

 

I am using TDateTimePicker to display date in Delphi 5

But the problem is i am not sure how to display date in "27-august-2007 "
format since for date format there 2 options that is short and long and when
i use long it displays days name whihc i dotn want. Please any one suggest
how to format date the way is mentioned above 

 

 

Regards
Vikas

ease Date: 25/08/2007 17:00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.adventureeducation.co.nz/pipermail/delphi/attachments/20070827/d8464b0d/attachment.html


More information about the Delphi mailing list