Posts Tagged ‘JavaScript’

JavaScript Date Format in Swedish

Wednesday, March 10th, 2010

Found myself “late-night-surfing” again, but this time I actually found something interesting. Steven Levithan has written an easy-to-use and easy-to-extend JavaScript date format function. So, to encourage his great work I publish the Swedish translation.

// Internationalization strings
dateFormat.i18n = {
dayNames: [
"Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör",
"Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"
],
monthNames: [
"Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec",
"Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
]
};

The complete code at its latest version can be found at Stevens blog, JavaScript Date Format.