Last active
September 13, 2017 12:50
-
-
Save skomarfaruque/5727b2a4052ea827f1dd4ee839629d0e 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
var date = moment().format("YYYY-MM-01") | |
var begin = new Date(moment(date).format("YYYY-MM-01")); | |
var end = new Date(moment(date).format("YYYY-MM-") + moment(date).daysInMonth()); | |
var result = []; | |
while (begin <= end) { | |
console.log('ads') | |
result.push(begin.toISOString()); | |
begin.setDate(begin.getDate()+1); | |
} | |
console.log(result) | |
//milisecond to date form | |
var a = moment(1504310400000).toISOString() | |
//add minute | |
moment(startTime).add(15, 'minutes') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment