What I have done in similar situations using dates anyway is var OldFormat : String begin OldFormat := LongTimeFormat; LongTimeFormat := 'hh:mm:ss'; [programming...] LongTimeFormat := OldFormat; This way you change the format then immediately put it back the way it was. Hope this helps. Steve Aish OCOM -----Original Message----- From: Sandeep [mailto:[EMAIL PROTECTED]] Sent: Thursday, 24 May 2001 16:24 To: Multiple recipients of list delphi Subject: [DUG]: AM-PM If I use 12 hr format I get dufferent value than if I use 24 hr format, which causes the boolean expression to evaluate differently. I want to do all my evaluations using 24 hr format regardless of what format the system is using. If I set LongTimeFormat := 'hh:mm:ss'; then it affects the complete application. How do I get around this? Sandeep Software Developer CFL [EMAIL PROTECTED] http://www.cfl.co.nz --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"