Format DateTime lazarus / 61-Beginners ---------------------------------------------------------------------- seghele0 · 2021-09-22 15:59 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i filename := 'Wiezen-' + FormatDateTime('ddmmyyyy',Date)+ '.xlsx';    workbook.WriteToFile(filename, sfOOXML, true);This works fine. Is it possible to add the time after the date ? ---------------------------------------------------------------------- wp · 2021-09-22 16:16 Please don't ask the same question a second time, in particular when the first question already has been answered