Author Topic: date format  (Read 3542 times)

0 Members and 1 Guest are viewing this topic.

Roberto Marson

  • Newbie
  • *
  • Posts: 1
date format
« on: June 02, 2024, 09:57:16 AM »
 wanted to display only the date without the times in the creation date column. It's possible?

RTT

  • Administrator
  • *****
  • Posts: 918
Re: date format
« Reply #1 on: June 02, 2024, 04:34:43 PM »
You need to create a custom grid layout, and add to it a dynamic calculated column with a formula such as:
formatdate('YYY/MM/DD',date(CD))
This will create a grid column where the PDF creation date is shown with the format defined in that formula. Because there is no format reference to the time, only the date part will be visible.

puckman

  • Newbie
  • *
  • Posts: 14
Re: date format
« Reply #2 on: July 30, 2024, 03:22:18 PM »
Thanks RTT!
That's exactly the explanation I've been looking for.  I've added the link to Delphi basics page on time and date formatting. https://delphibasics.co.uk/RTL.php?Name=FormatDateTime in case someone else is looking for the same answer wiith specific date and time formating.