pass a variable in date javascript function code example
Example: new date parameters javascript
// new Date parameters in javascript
new Date(year, month, date, hours, minutes, seconds, ms)
// new Date parameters in javascript
new Date(year, month, date, hours, minutes, seconds, ms)