How to change date format for an instance variable holding date info?
I have created a variable,
var NovDate = new Date();
This date is in MON DD YYYY Format. I want to convert this to YYYMMDD format.
If I write the function : var NovDate = formatDate(NovDate, "%4Y%2M%2D%2H%2M%2S"); , I'm getting an error as below:
JST-310000 Error while compiling script 'WKF5041/start' line 6: NovDate.getDate is not a function.
Please assist.