I\'m trying to get the current date without the time and store it in a variable, within JavaScript. It needs to be without time as I\'m converting it to an epoch date, with
Try this:
var nowDate = new Date(); var date = nowDate.getFullYear()+'/'+(nowDate.getMonth()+1)+'/'+nowDate.getDate();
Note: Adjust format as you want, like reorder day, month, year, remove '/' and get combined date etc.