Page 1 of 1

Short month format 'M'

PostPosted: Tue Jun 25, 2013 9:11 am
by Lamer
Greetings,

I couldn't seem to get the M date format working (Jan, Feb etc). If you need it, just add this to the .js file

After..
var A_TCALTOKENS = [

Add..
// A short textual representation of a month, such as Jan or Mar
{'t': 'M', 'r': A_TCALCONF.months.join('|'), 'p': function (d_date, s_value) { for (var m = 0; m < 12; m++) if (A_TCALCONF.months[m] == s_value) { d_date.setMonth(m); return d_date; }}, 'g': function (d_date) { return A_TCALCONF.months[d_date.getMonth()].substring(0,3); }},