Skip to content

Instantly share code, notes, and snippets.

@aliaspooryorik
Forked from anonymous/trycf-gist.cfm
Last active August 29, 2015 14:23
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 aliaspooryorik/23ecff282b1f3c24d54a to your computer and use it in GitHub Desktop.
Save aliaspooryorik/23ecff282b1f3c24d54a to your computer and use it in GitHub Desktop.
LSDateFormat error
<cfscript>
foo = "{ts '2015-01-09 15:15:39'}";
writeDump(isDate(foo)); // true
writeDump(DateFormat(foo, "yyyy-mm-dd")); // 2015-01-09
writeDump(LSDateFormat(foo, "yyyy-mm-dd")); // error
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment