Greetings,
I am having an issue with a date-time format when save a csv file.
The filename should be like "Summary_20231103_082637".
formattedDate = Format(Today(), "yyyymmdd_hhmmss");
filename = Convert File Path("C:\Path\Summary_" || formattedDate || ".xlsx", absolute );
if(File Exists (filename),
dt << Save (filename, Mode("Append")),
dt << Save (filename));
I tried to format the datetime with
formatDate = Format(Today(), "yyyymmdd");
Show(formatDate);
Result: "20231103"
format1 = Format(Today(), "h:m:s");
Show(format1);
Result: "6:18:32 PM"
format2 = Format(Today(), "<YYYY><MM><DD><-><hh24><mm><ss>");
Show(format2);
Result: "11/03/2023"