Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6117969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:22:54+00:00 2026-05-23T15:22:54+00:00

I want to create a date object, and have the time saved as I

  • 0

I want to create a date object, and have the time saved as I put it there.

An example:

var date = new Date(2011, 06, 13, 7, 15, 0, 0);

Right now, when I create a date object, it edits the time to my time zone, and I don’t want that.
So for example, if I create a time ‘7:15’ it will edit it to ‘5:15’ because i’m in GMT + 2.

I just want it to be created as 7:15, and don’t look at the timezone.

How can this be done? I hope my problem is clear enough.

Thanks!

Tjellekes

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:22:55+00:00Added an answer on May 23, 2026 at 3:22 pm

    add the resulting date with timezone offset like this:

    date.setMinutes(date.getMinutes() + date.getTimezoneOffset());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want create image animation , i have 50 images with png format now
I am trying to create my own Date/Time field. I know there are a
Given I have a model/table with appointments, saved as a date. I want to
Is it possible to create a new Date() object to get the current date,
I want to create a Settings-Widget, where I can choose a Date. Because it
I want to create an application that logs when I have gone jogging and
I want to create a massive TimeSeries object which will hold 1000 different financial
Study case: If I have for example The library object. In the library are
I need to create a java.util.Date object with an Australian timezone. this object is
I have a Grails application I created a Gregorian Calendar GMT date. The time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.