Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfscript>
- function testDateFmt(locale) {
- setLocale(locale);
- dt = '04/12/2018';
- pdt = lsparseDateTime(dt);
- dump(pdt);
- dump(lsDateFormat(pdt, 'yyyy-mm-dd'));
- }
- testDateFmt('en_GB');
- testDateFmt('en_US');
- </cfscript>
Add Comment
Please, Sign In to add comment