Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

Change the Date format for the TDateEdit component

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

David Copeland
to Johan Tu Toit

That would be the DateOrder property of a TDate Edit, set it to doYMD.

Dave Copeland.

Johan Tu Toit wrote 13 lines
Good day, Please how to change the Date format for the TDateEdit component to YYYY-MM-DD instead of using the default DD/MM/YYYY? Thanks in advance -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130618/5f98f18c/attachment.html>

Reply by email

Johan Tu Toit
to David Copeland

The DateOrder property only give the format order but do not change the separator / to -

David Copeland wrote 28 lines
That would be the DateOrder property of a TDate Edit, set it to doYMD. Dave Copeland. On 06/18/2013 08:10 AM, Johan Tu Toit wrote: Good day, Please how to change the Date format for the TDateEdit component to YYYY-MM-DD instead of using the default DD/MM/YYYY? Thanks in advance -- _______________________________________________ Lazarus mailing ://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130618/38c18fe1/attachment-0001.html>

Reply by email

David Copeland
to Johan Tu Toit

True, I do not know if there is a "separator" property. In my programs I typically build a date string from the TDateEdit.Date myself.

Johan Tu Toit wrote 20 lines
The DateOrder property only give the format order but do not change the separator / to - On Tue, Jun 18, 2013 at 2:20 PM, David Copeland < <mailto:>> wrote: That would be the DateOrder property of a TDate Edit, set it to doYMD. Dave Copeland. On 06/18/2013 08:10 AM, Johan Tu Toit wrote: > Good day, > > Please how to change the Date format for the TDateEdit component > to YYYY-MM-DD instead of using the default DD/MM/YYYY? > > Thanks in advance >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130618/f039dfd4/attachment.html>

Reply by email