Recent

Author Topic: TdateTimePicker problem  (Read 1780 times)

mpknap

  • Full Member
  • ***
  • Posts: 155
TdateTimePicker problem
« on: April 02, 2019, 06:19:22 am »
I have a problem with DateTimerPicker.
In my program it appears as DD / MM / YYYY. (windows 10).
On another computer with Windows 8.1, the date is displayed YYYY / MM / DD

It's like a small difference but I want it to appear on every computer and system like I am, because according to this format, data files are loaded.

ASBzone

  • Hero Member
  • *****
  • Posts: 733
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: TdateTimePicker problem
« Reply #1 on: April 02, 2019, 06:24:04 am »
I have a problem with DateTimerPicker.
In my program it appears as DD / MM / YYYY. (windows 10).
On another computer with Windows 8.1, the date is displayed YYYY / MM / DD

It's like a small difference but I want it to appear on every computer and system like I am, because according to this format, data files are loaded.


Are the regional settings for Windows (in the control panel) set the same way on both machines?
-ASB: https://www.BrainWaveCC.com/

Lazarus v4.3.0.0 (bcf314a670) / FreePascal v3.2.3-46-g77716a79dc (aka fixes)
(Windows 64-bit install w/Win32 and Linux on ARM and x64 cross-compilers via FpcUpDeluxe)

My Systems: Windows 10/11 Pro x64 (Current)

mpknap

  • Full Member
  • ***
  • Posts: 155
Re: TdateTimePicker problem
« Reply #2 on: April 02, 2019, 06:49:14 am »
In both are as "Poland"


wp

  • Hero Member
  • *****
  • Posts: 13363
Re: TdateTimePicker problem
« Reply #3 on: April 02, 2019, 07:12:00 am »
To enforce a given order of date parts, set the DateTimePicker's DateDisplayOrder.

mpknap

  • Full Member
  • ***
  • Posts: 155
Re: TdateTimePicker problem
« Reply #4 on: April 04, 2019, 06:35:39 am »
" set the DateTimePicker's DateDisplayOrder" unsolve problem.

To display date corect :  :-[
label1.caption:=(FormatDateTime('dd.mm.yyyy', Datetimepicker2.date));

 

 

TinyPortal © 2005-2018