Search code examples
datetimecoldfusioncoldfusion-10coldfusion-11

DateFormat default mask


In either CF 10 or CF 11 is there a way to change the default mask used by the DateFormat() function? The Adobe docs indicate the default is "dd-mmm-yyyy" but I haven't seen anything about whether that default can be changed or not. I'm hoping there is an Application setting somewhere to change it.


Solution

  • Alternatively, you can also use long, short, and medium for different, easy to type, defaults.

    #dateFormat(date, "short")#

    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ff4.html