Skip to content

Instantly share code, notes, and snippets.

@miroli
Created March 12, 2015 15:14
Show Gist options
  • Save miroli/fea3ed0d0fd8d53a8fcc to your computer and use it in GitHub Desktop.
Save miroli/fea3ed0d0fd8d53a8fcc to your computer and use it in GitHub Desktop.
$(window).ready(function() {
var weekdays = ['Söndag', 'Måndag', 'Tisdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lördag'],
months = ['Januari', 'Februari', 'Mars', 'April', 'Maj', 'Juni', 'Juli', 'Augusti', 'September', 'Oktober', 'November', 'December'];
var d = new Date();
$('#pejl-weekday').html(weekdays[d.getDay()]);
$('#pejl-date').html(d.getDate());
$('#pejl-month').html(months[d.getMonth()]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment