Board index » delphi » DateTime Format - App vs Control Panel
Luis Leit?o
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Luis Leit?o
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
DateTime Format - App vs Control Panel
Hi,
Is it possible to configure the Date and the Time Format of an In my app I use the dd-mm-yyyy format. I have installed this app in a PC Luis, |
Pam Abdull
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelSee ShortDateFormat. QuoteLuis Leit?o wrote: |
Sasan Adam
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelQuote"Luis Leit?o" wrote: date. You can specify your own format ('dd-mm-yyyy' or so) or use one of the Windows settings (ShortDateFormat, LongDateFormat) Another options would be to change the ShortDateFormat / LongDateFormat Sasan. |
Luis Leit?
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelFrom: tropix [mailto:tro...@OntheNet.com.au] Sent: Sexta-feira, 22 de Janeiro de 1999 22:10 To: Luis Leit?o Subject: Re: DateTime Format - App vs Control Panel Hi... Do this to stop the users settings from overriding yours. On each form in your app, write an initialization clause.... initialization ....also, if your using the BDE, you will need to change the BDE best wishes Hi, I have tried and it didn't work like I needed but... I have add this code: Initialization I put also this code: Application.UpdateFormatSettings:=False; in the main procedure of the application and it finally worked for some objects... But I am still having the problem Anybody know how to make the DateTimePicker work with my Format Date? Luis, QuoteLuis Leit?o wrote: |
Tim Rober
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelQuote"Luis Leit?o" <lslei...@dei.uc.pt> wrote: configure the date settings to their liking for a reason: that's how they want to view dates. "Programmer convenience" is NOT a sufficient reason to override control panel preferences. Your program should adapt to the user's preferences, and not vice versa. For example, if you want to force the format just to allow you to parse the |
Josir Gom
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelQuoteOn Tue, 26 Jan 1999 16:55:20 GMT, t...@probo.com (Tim Roberts) wrote: have any suggestion how to do that ? For some database engine (Oracle, for instance), even the Thanks in advance! Josir Gomes |
Eric Anderso
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:DateTime Format - App vs Control PanelWith ORACLE (and probably others), you can specify in your SQL what you want the date to look like i.e: select to_char(MDATE, 'MM/DD/YYYY') as MDATE from MY_TABLE QuoteJosir Gomes wrote in message <36b99654.2949...@cnews.newsguy.com>... |
1. changing time format in control panel
2. Currency formatting doesn't use control panel settings
3. Putting delphi apps inside Control Panel
4. How to start a Control Panel app?
6. Control Panel App Confusion
7. Control Panel App containing a form
8. Edit Format vs. Display Format for DBEdit