Created
April 25, 2016 12:50
-
-
Save natergj/eb026d5dfd75880841da885bd7467c2d to your computer and use it in GitHub Desktop.
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
// Uses excel4node version 1.x.x | |
var xl = require('excel4node'); | |
var wb = new xl.Workbook({ | |
dateFormat: 'm/d/yy hh:mm:ss' | |
}); | |
var ws = wb.addWorksheet('Dates'); | |
ws.cell(1, 1).date(new Date()); | |
ws.cell(2, 1).date(new Date()).style({ numberFormat: 'yyyy-mm-dd' }); | |
ws.column(1).setWidth(20); | |
wb.write('DateSample.xlsx'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mm for minutes with two digits eg:- 04, 10, 09 even if you have a single number it will represent a double-digit.
MM Stands for double-digit to represent the month.