Jump to content

Search the Community

Showing results for tags 'javascript date object'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  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...