Skip to content

Instantly share code, notes, and snippets.

Created October 7, 2016 14:44
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 anonymous/5a06e0309a37057dcb1ed78b88be87db to your computer and use it in GitHub Desktop.
Save anonymous/5a06e0309a37057dcb1ed78b88be87db to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
n = createDateTime(2015,12,30,11,22,33);
ds = {
df : dateFormat(n,"MM/DD/YYYY") ,
dtf : dateTimeFormat(n,"MM/DD/YYYY")
};
dsl = {
dfL : dateFormat(n,"mm/dd/yyyy") ,
dtfl: dateTimeFormat(n,"mm/dd/yyyy")
};
ds2 = {
dtf : dateTimeFormat(n,"D|d||H|h||M|m||S|s||W|w||Y|y||Z|z") ,
df : dateFormat(n,"D|d||H|h||M|m||S|s||W|w||Y|y||Z|z")
};
writeDump(ds);
writeDump(dsl);
writeDump(ds2);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment