The result in Boxlang is different from other engines:
Boxlang: Thu Mar 20 09:29:26 UTC 2025 ACF: {ts '2025-03-20 09:29:26'} Lucee:
Date Time (Etc/UTC)
{ts '2025-03-20 09:29:26'}
Jon Clausenlast month
@Harry Klein It’s actually not different. It’s just that java.util.Date is not the backing class of BoxLang DateTime objects - as we use the java.time libraries. We are just calling the toString method on the Java Date class when you dump it, where as ACF and Lucee represent it as their Date object dump.
I can see, though, that this is the default mask of the java.util.Date.toString() method and I will add a mask parser for it. Thanks!
Jon Clausenlast month
@Harry Klein Is that a common European date format - with the year after the timezone? I have never seen that format used before.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
<cfset test = "Tue Nov 22 11:01:51 CET 2022"> <cfdump var="#DateFormat(test, "dd.mm.yyyy")#">