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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:32:32+00:00 2026-05-25T19:32:32+00:00

I am trying to build a calendar in php which will display events on

  • 0

I am trying to build a calendar in php which will display events on my website. My requirement is to populate the calendar with events from different websites, which publish an RSS feeds of their events.

In my initial attempt I parsed the events based on the <pubDate> tag and aggregated those in my calendar. However, I soon realized that this doesn’t work the way I want it to.

The problem lies in the fact that the RSS feeds from different websites are not consistent with each other. For eg. One of the sites published the date for the event in the <pubDate> tag as <pubDate>Mon, 25 Jul 2011 21:11:40 GMT</pubDate>.

Another one has it in the <title> tag – as <title>26 Sep 2011 19:00 : The Life of a Lily</title>.

One other site has the event date in the <Description> tag as free floating text.

I am really in a fix as to how to consolidate these into a single calendar. Can someone please suggest a way I can do this?
Or am I left with just cursing how non-standard the feeds are, in-spite of being technically standard?

Thanks a lot!

  • 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-25T19:32:32+00:00Added an answer on May 25, 2026 at 7:32 pm

    First you would need to locate and parse out the date portion of the posts. You could do this using regex or with PHP’s string functions. Then you could use PHP’s strtotime(..) and date(..) to normalize the dates, like this:

    $date = '26 Sep 2011 19:00';
    print date("Y-m-d", strtotime($date)); // prints: 2011-09-26
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying build a method which returns the shortest path from one node to
I'm trying to build an Activity that will serve as a Calendar Day View.
I am trying to build a query for fetching the events from the native
I am trying to build an application that shows a Calendar with events that
I'm currently trying to build a personal website to create a presence on the
I am trying to build an website for my college's magazine. I used the
I'm trying to build a calendar that looks like Android internal Calendar. The thing
I'm trying to read a calendar feed from http://meetup.com/ , but it seems that
I'm trying to build a quick overview that shows the upcoming calendar week. I
Okay I have been racking my brain trying to build a JSON array from

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.