calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 3:22 am Post subject: How to customize the date format to be like "yyyymmdd"? |
|
|
Simply set the following options in the theme-name.js file.
Code: | var gsSplit=""; // separator of date string.
var giDatePos=2; // date format sequence 0: D-M-Y ; 1: M-D-Y; 2: Y-M-D
var gbPadZero=true; // whether to pad the digits with 0 in the left when less than 10.
var giMonthMode=0; // month format 0: digits ; 1: full name from gMonths; >2: abbreviated name
var gbShortYear=false; // year format true: 2-digits; false: 4-digits |
Note: When gsSplit is set to empty string, like above, settings of gbPadZero and giMonthMode will be ignored and the engine will render the format as if gbPadZero were set to true and giMonthMode to 0.
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|