Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

How to change date format 1 year 2 months ago #17141

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
I did try this way: 
initialization
  DateSeparator := '-';
  DateFormat := 'yyyy-MM-dd';
Warning: Symbol "DateSeparator" is deprecated
Error: Identifier not found "DateFormat"

Is there any way to change DateFormat ?
 
MX Linux 21.2.1 Wildflower;
Typhon version: 7.7, Build Date: 2022-11-17, revision: 2202141933;
FPC version: 3.3.1, revision: 2202141933;
Platform: x86_64-linux-gtk2

Please Log in or Create an account to join the conversation.

How to change date format 1 year 2 months ago #17142

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
I found solution that works for me: 
initialization
  FormatSettings.DateSeparator := '-';
  FormatSettings.ShortDateFormat := 'yyyy-MM-dd';
MX Linux 21.2.1 Wildflower;
Typhon version: 7.7, Build Date: 2022-11-17, revision: 2202141933;
FPC version: 3.3.1, revision: 2202141933;
Platform: x86_64-linux-gtk2

Please Log in or Create an account to join the conversation.

Last edit: by Droid c3p0.

How to change date format 1 year 2 months ago #17143

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 925
  • Thank you received: 118
Thanks Sir
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

How to change date format 1 year 2 months ago #17146

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
You are welcome
MX Linux 21.2.1 Wildflower;
Typhon version: 7.7, Build Date: 2022-11-17, revision: 2202141933;
FPC version: 3.3.1, revision: 2202141933;
Platform: x86_64-linux-gtk2

Please Log in or Create an account to join the conversation.

  • Page:
  • 1