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 7635745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:30:13+00:00 2026-05-31T07:30:13+00:00

Okay so I am making this race schedule and I have it in json

  • 0

Okay so I am making this race schedule and I have it in json like so:

{
    "races": [
        {
            "title": "Boston race",
            "location": "Boston MA",
            "dates": "12-14 Jan"
        },
        {
            "title": "New York race",
            "location": "New York NY",
            "dates": "1-2 Feb"
        },
        {
            "title": "Austin race",
            "location": "Austin TX",
            "dates": "29-30 Feb"
        },
        {
            "title": "LA race",
            "location": "LA CA",
            "dates": "12-14 March"
        },
        {
            "title": "Atlanta race",
            "location": "Atlanta GE",
            "dates": "1-2 April"
        },
        {
            "title": "Kansas City race",
            "location": "Kansas City KS",
            "dates": "29-30 May"
        },
        {
            "title": "Richmond race",
            "location": "Richmond VA",
            "dates": "12-14 Jun"
        },
        {
            "title": "La race",
            "location": "LA CA",
            "dates": "1-2 July"
        },
        {
            "title": "Austin race",
            "location": "Austin TX",
            "dates": "29-30 Aug"
        }
    ]
}

The dates and titles are just dummy ones for simplicity but basically I want to have a little box which says when the next race is, where and the dates. The tricky part is that I want it to change displaying say “next race” Austin to “next race” LA’s at 4:00pm race time. Now to make it harder the timezones are different and I want it to be timezone specific. Everyone’s changes at the same time but at 4:00pm after the race. So the Texas race would change at 4:00pm after the race and the people in LA would see it at 2:00pm because of timezones.

A.can you set it to change at a given time

B.Can it be specific to 4:00pm after the races timezone or will I need to convert all of them to the same timezone’s time.

Is this possible with just javascript and thank you for your time.

I want the date changes to be year specific as well, something like 3/23/2011 change @4pm

How would I set this up. JS and html if its tricky please.

  • 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-31T07:30:15+00:00Added an answer on May 31, 2026 at 7:30 am
    1. Add a key to your JSON for the display date. It would store the date as a JSON.stringify() version of the date, which stores the time zone.
    2. When determining which one to show, convert that JSON.stringify string into a date ((new Date(JSON.parse(dateVal)))
    3. Then convert that date to UTC time and make the comparison in UTC time from that the browser is reporting (dateVal.UTC() > new Date().UTC())

    You shouldn’t have to ask for timezone as long as you are willing to use the one that the browser thinks it is in.

    UPDATE:

    Here is a jsfiddle example: http://jsfiddle.net/pseudosavant/wxwP7/
    Keep in mind that the JSON.stringify object/method only has native support back to IE8, so if you (very unfortunately) must support lower than IE8 then you’ll need to use a polyfill for it such as Douglas Crockford’s JSON.js.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay so scenario goes like this : I have multiple web applications, which consume
Okay so, I have to use an interface in a code I'm making involving
Okay this question is very simple: I have a facebook page, and a website.
Okay, this is a bit messy: I'm using Netbeans, and I have a main
Okay, I'm trying to be clear on this one... I have some insliding boxes,
Okay since I have little experience with this stuff and the Facebook documentation is
Okay. This is my company's customer portal, it's an MVC 2 project. We have
okay, im making an application for tablets and i get this error with my
okay... How do I explain this without being totally confusing?... Alright, I have this
Okay, simple template question. Say I define my template class something like this: template<typename

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.