Recent

Author Topic: Format DateTime  (Read 852 times)

seghele0

  • Jr. Member
  • **
  • Posts: 84
Format DateTime
« on: September 22, 2021, 05:59:48 pm »
Code: Pascal  [Select][+][-]
  1. filename := 'Wiezen-' + FormatDateTime('ddmmyyyy',Date)+ '.xlsx';
  2.     workbook.WriteToFile(filename, sfOOXML, true);
This works fine.

Is it possible to add the time after the date ?
 :-[

wp

  • Hero Member
  • *****
  • Posts: 9008
Re: Format DateTime
« Reply #1 on: September 22, 2021, 06:16:31 pm »
Please don't ask the same question a second time, in particular when the first question already has been answered  ;D
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018