Skip to content

Instantly share code, notes, and snippets.

@molavec
Created March 6, 2019 20:46
Show Gist options
  • Save molavec/10e58bdfec8f8141ac7c2b98f96ecb31 to your computer and use it in GitHub Desktop.
Save molavec/10e58bdfec8f8141ac7c2b98f96ecb31 to your computer and use it in GitHub Desktop.
[Javascript - Date] Formas de obtener fechas #javascript #date
//Generar fecha
var date = new Date();
var today = date.getDate() + '-' + (date.getMonth()+1) + '-' + date.getFullYear();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment