× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question How to change date format

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago #17141 by Droid c3p0
How to change date format was created by Droid c3p0
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 ?
 

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

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago - 3 weeks 5 days ago #17142 by Droid c3p0
Replied by Droid c3p0 on topic How to change date format
I found solution that works for me: 
initialization
  FormatSettings.DateSeparator := '-';
  FormatSettings.ShortDateFormat := 'yyyy-MM-dd';
Last edit: 3 weeks 5 days ago by Droid c3p0.

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

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
More
3 weeks 5 days ago #17143 by Matis A.
Replied by Matis A. on topic How to change date format
Thanks Sir

PilotLogic Core Programmer

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

  • Droid c3p0
  • Droid c3p0's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 weeks 5 days ago #17146 by Droid c3p0
Replied by Droid c3p0 on topic How to change date format
You are welcome

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