I have one calendar in my front end and as soon as I select one date the request should go to the REST Service at server. Currently I am able to get the date string at Server but how can I get the actual date object out of that "String" which I received as "DATE"
Below is what I have tried till now.
Date Selected at front end: 10th August 2016
Equivalent Date received as String at backend: "1470873599000"
QUESTION 1: How can I create a Date object and store this String received. Eventually I need to pass date as #8/10/2016# to my actual code from the string received. Please guide me.
localStorage.setItem('date', start._d.getTime()); // 1470873599000
localStorage.getItem('date') // It is sent via AJAX CALL
'getter setter for the date
Private dateId As String
Public Property dateProp() As String
Set(ByVal value As String)
dateId = value
which will give a readable date/time/timezone
and to parse it on the server
Dim myInput = "2016-08-16T15:49:49.574Z" Dim theDate = DateTime.Parse(myInput)