Jump to content

s.leo

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About s.leo

  • Rank
    Newbie
  1. How can I add a date to an object without it changing due to the timezone? Example: var mydate1 = new Date('2019-12-10 00:00:00'); var myobject1 = {"mydate": mydate1}; alert(mydate1 + " - " + JSON.stringify(myobject1)); Result is: Tue Jan 01 2019 00:00:00 GMT+0100 (Ora standard dell’Europa centrale) - {"mydate":"2018-12-31T23:00:00.000Z"} Thank you.
×
×
  • Create New...