Jel - JavaScript Enhancement Library API Documentation |
Jel.LangLanguage Resources for the Jel library which allow it to be internationalised. Summary
Jel. Lang.DateLanguage resources for Jel.Date Summary
DAYSan array of long day name string constants for the current language build. e.g. for English [“Sunday”, ..., “Saturday”]. These are also used by Jel.Date.format and Jel.Date.parse. ExampleJel.Lang.Date.DAYS[4]; // Thursday DAYS_SHORTan array of short day name string constants for the current language build. e.g. for English [“Sun”, ..., “Sat”]. These are also used by Jel.Date.format and Jel.Date.parse. ExampleJel.Lang.Date.DAYS_SHORT[4]; // Thu MONTHSan array of long month names string constants for the current language build. e.g. for English [“January”, ..., “December”]. These are also used by Jel.Date.format and Jel.Date.parse. ExampleJel.Lang.Date.MONTHS[4]; // May MONTHS_SHORTan array of short month names string constants for the current language build. e.g. for English [“Jan”, ..., “Dec”]. These are also used by Jel.Date.format and Jel.Date.parse. ExampleJel.Lang.Date.MONTHS_SHORT[4]; // May |
formats the given date as a string using the date format in format.
Jel.Date.format = function( date, format )
parses a date string into a JavaScript Date object assuming a specified date format.
Jel.Date.parse = function( str, format )