[Ha...] Posted December 8, 2023 Share Posted December 8, 2023 Hello. I need help with how to change the format on dates in the report header fields. I need this to print out a hdr-file with the correct date in order to execute a external code. The problem i have is that on the first 9 days of each month my code wants a format like "2023-12-08" but the hdr-file prints out "2023-12-8". Is there a solution to change the format of the dates that calypso prints out? Best regards 🙂Calypso_datum2.PNGCalypso_datum3.PNGCalypso_datum.PNG Link to comment Share on other sites More sharing options...
[Mi...] Posted December 8, 2023 Share Posted December 8, 2023 Hello! Did you try to set the header for the date by setRecordHead("date",date(2)) ? Afterwards getRecordHead("date") should have the right format. Link to comment Share on other sites More sharing options...
[Je...] Posted December 8, 2023 Share Posted December 8, 2023 Datum = dateInNumbers() Tag = strElement(1,".",Datum) if len(Tag) == 1 then Tag = text("0",Tag) endif Monat = strElement(2,".", Datum) if len(Monat) == 1 then Monat = text("0",Monat) endif Jahr = strElement(3,".", Datum) DatumFile = Jahr+"-"+Monat+"-"+Tag Greets Jens Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in