Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2001, 01:55 AM
User 850 User 850 is offline
Member
 
Join Date: Jan 2001
Posts: 71
Default For Gods sake... I am going insane... (About the 'datetime-picker)

Hi,

Does anybody have an example showing how to get the 'datetime-picker' to show the time in the following format: (hh:mm AM/PM)?

This is very important, and I would be very greatfull if somebody could help me with this...

Thanks in advance
Reply With Quote
  #2  
Old 01-18-2001, 02:36 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: For Gods sake... I am going insane... (About the 'datetime-picker)

I think you have to write your own component, it says that it is ignoring the BiDiMode and the SysLocale parameter.


Regards


/Filip
Reply With Quote
  #3  
Old 01-18-2001, 02:24 PM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: For Gods sake... I am going insane... (About the 'datetime-picker)

SendMessage(DateTimePicker1.Handle, DTM_SETFORMAT, 0,
longint(PChar('hh:mm tt')));

See MSDN for more formatstrings:
http://msdn.microsoft.com/library/psdk/shellcc/commctls/DateTime/DateTime.htm#dtp_format_chars
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 09:57 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.