Created
July 26, 2017 22:09
-
-
Save masterk63/dc68df9a34ed415b63026c5fc8bff15e to your computer and use it in GitHub Desktop.
utc fecha date node correccion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm install dateformat | |
// var dateformat = require('dateformat') | |
fechaPago = new Date(fechaPago.getUTCFullYear(), | |
fechaPago.getUTCMonth(), | |
fechaPago.getUTCDate(), | |
fechaPago.getUTCHours(), | |
fechaPago.getUTCMinutes(), | |
fechaPago.getUTCSeconds()); | |
fechaPago = dateformat(fechaPago,'dd/mm/yyyy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment