devxlogo

Date formatting with shortdateformat

Date formatting with shortdateformat

Question:
I’m using Delphi 2.0. My application changes the date format with ShortDateFormat:=’dd/mm/yyyy’ and dateseparator functions. It works, but I found that when I change the taskbar’s ontop or autohide properties, the system’s regional settings formats override mine. I’m using these dates in a DBGrid, and I arranged the columns with this format. I want to use it permanently.

Answer:
For permanent data format changes, you’d be better off changing the format inthe BDE Configuration Manager rather than trying to do it all in code. This is muchmore direct, but it will affect all your other database applications.

See also  5 Benefits of Using Time Tracking Software
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist