Created
April 18, 2024 09:20
-
-
Save trycf/a2a4fbc92cf56cb1915c89582af52620 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function formatDate( required Date d ) | |
{ | |
var dateTime = d;//parseDateTime(d, "dd.MM.yyyy HH:nn:ss"); | |
return( | |
dateFormat( dateTime, "yyyy-mm-dd" ) & | |
" " & | |
timeFormat( dateTime, "HH:mm:ss" ) | |
); | |
} | |
writeDump(formatDate(now())) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment