Skip to content

Instantly share code, notes, and snippets.

@BubuInc
Last active November 10, 2019 05:25
Show Gist options
  • Select an option

  • Save BubuInc/96f47b651cf815a7d17f to your computer and use it in GitHub Desktop.

Select an option

Save BubuInc/96f47b651cf815a7d17f to your computer and use it in GitHub Desktop.
date
(function () {
var date = new Date();
var year = date.getYear();
if (year < 1900) year += 1900;
var day = date.getDay();
var month = date.getMonth();
var daym = date.getDate();
var days = ["Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado"];
var months = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
$('#fechaNavbar').text(days[day] + " " + daym + " de " + months[month] + " de " + year);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment