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

  • Home
  • SEARCH
  • 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 6365585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:18:42+00:00 2026-05-25T00:18:42+00:00

I am very new to parsing XML data with javascript, so please excuse me

  • 0

I am very new to parsing XML data with javascript, so please excuse me if my question is a bit simple.

I am parsing data from an XMl file with javascript using a standard xmlHTTPRequest. The format of the URL that I am pulling the XML data from is something like: “http://example.com/abcyymmdd-data.xml”. The (yymmdd) portion of the url represents the date and the files are updated daily. I would like to insert a javascript code in the url in place of yymmdd so that a new XML file is parsed each day. How might I achieve this?

Thanks,
Carlos

  • 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-25T00:18:43+00:00Added an answer on May 25, 2026 at 12:18 am

    You can retrieve the current date in yymmdd format like:

    var d = new Date();
    var date_string = 
        d.getFullYear().toString().substring(2) +
        (d.getMonth () < 9 ? "0" : "") + (d.getMonth() + 1) +
        (d.getDate() < 10 ? "0" : "") + d.getDate();
    

    Example at JS Fiddle.

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

Sidebar

Related Questions

I'm new to XML parsing and want to convert XML file resulting from a
Warning - I am very new to NHibernate. I know this question seems simple
Hi I am very much new to xml parsing ,i am trying to parse
I am very new to parsing XML, and I started learning about linq which
I want to provide a bit of very simple editor support for a new
I am very new to Python and parsing data. I can pull an external
Extended Backus–Naur Form: EBNF I'm very new to parsing concepts. Where can I get
I still very new using Subversion. Is it possible to have a working copy
I am VERY new to ASP.NET. I come from a VB6 / ASP (classic)
I am very new to the entity framework, so please bear with me... How

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.