i am getting in Json format the follow
09\/14\/2013 14:00
i would like to add minutes to the date and display the value as string should i convert it to datetime, add and convert back? if yes then how?
i am getting in Json format the follow
09\/14\/2013 14:00
i would like to add minutes to the date and display the value as string should i convert it to datetime, add and convert back? if yes then how?
Once you have converted this to a Date()
object in Javascript, you can use the getMinutes()
function to obtain the minutes in the date, perform your logic to add minutes, and then set the minutes using the setMinutes()
function.