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/ecd728047eae272a6af33dafa1e2639b to your computer and use it in GitHub Desktop.
Save trycf/ecd728047eae272a6af33dafa1e2639b to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
data = [:];
data['source'] = parseDateTime('2022-07-25 20:40:15.352661',"yyyy-mm-dd HH:nn:ss");
data['local'] = dateFormat( data.source, "yyyy-mm-dd" ) & " " & timeFormat( data.source, "HH:nn:ss" );
dump( data );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment