Short month format 'M'

Family of visual date and/or timestamp pickers. Let your visitors pick date from nice looking calendar rather than type in text edit box. Help avoiding date format related problems. Great flexibility and wide browsers support.

Short month format 'M'

Postby Lamer » Tue Jun 25, 2013 9:11 am

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); }},
Lamer
 
Posts: 1
Joined: Tue Jun 25, 2013 9:08 am

Return to Tigra Calendar Product Family

cron