# Working with the dateChooser component

**URL:** <https://forum.kirupa.com/t/working-with-the-datechooser-component/116099>\
**Category:** Uncategorized\
**Created:** [July 14, 2004, 4:12pm UTC](https://forum.kirupa.com/t/working-with-the-datechooser-component/116099 "2004-07-14T16:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monAmour](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@monAmour](https://forum.kirupa.com/u/monAmour)\
**Post date:** [July 14, 2004, 4:12pm UTC](https://forum.kirupa.com/t/working-with-the-datechooser-component/116099/1 "2004-07-14T16:12:20Z")

</div>

For my projectmanagement sofware I want to use the dateChooser component to implement a dynamic projectcalendar for each project. I’ve been able to customize the component for my specific needs as far as it goes with the standard parameters.

Now my problem, how do I loop through the calendar adding event data to specific dates?  
I load XML data with the dates that has an events attatched to them like this:

```auto

<?xml version="1.0"?>
<calendar>
<date id="20040705" events="3" />
<date id="20040723" events="1" />
<date id="20040818" events="5" />
..
</calendar>

```

In fact, PHP retrieves the records from my MySQL database summing them up in the above XML format.  
All I really need to do is looping through my dateChooser component calendar and mark out which date that has an event or more with some color or something.

I don’t need my calendar to display info about the events. All it has to say when clicking a date is how many events there are. Eventinfo will be displayed in a HTML popUp window.
