Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/a2a4fbc92cf56cb1915c89582af52620 to your computer and use it in GitHub Desktop.
Save trycf/a2a4fbc92cf56cb1915c89582af52620 to your computer and use it in GitHub Desktop.
TryCF Gist
<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