My VB.net
Rest service at backend expects date in below format:
starterInput.dateProp = 08/26/2016 where dateProp is of date type
Currently I am getting date in below format in my front endJavascript
start = 2016-08-26T03:59:59.999Z
How can I convert my date of 2016-08-26T03:59:59.999Z
to 08/26/2016
in Javascript
I have tried some of the built in function.
start.toArray()
gives me something like [2016, 7, 10, 3, 59, 59, 0]
So shall I parse this array and use the index to create something like 08/26/2016
and then send it to the backend. I tried some other functions too which are available in javascript, like:
start.format()
output: "2016-08-10T03:59:59+00:00"
start.toString()
output: ""Wed Aug 08 2016 03:59:59 GMT+0000"
I am confused how to get the date in the format I expect 08/26/2016
. Please guide me. Thanks!