# \[FMX\] Date object frustration - need help bad!

**URL:** <https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483>\
**Category:** Uncategorized\
**Created:** [August 5, 2004, 9:13pm UTC](https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483 "2004-08-05T21:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigMT](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@BigMT](https://forum.kirupa.com/u/BigMT)\
**Post date:** [August 5, 2004, 9:13pm UTC](https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483/1 "2004-08-05T21:13:00Z")

</div>

I am trying to find a way to use the date object to check the day of the month. If is the 23rd then play if not, do nothing.

I looked at the date countdown tutorial, but I don’t need to display the information just check the date. even if I hid the countdown info, once I hit the 23rd I am out of luck till the first of the next month, the “alarm” stays.

Think of what I need as a date alarm, if it is the 23rd the alrm goes off, if it is not, then it is business as usual (this is tied into an analog clock that is supposed to have a monthly reminder for the 23rd)

I appreciate any help I can get on this. Getting the clock to work was cake, but I just can’t get this “alarm” to work for me.

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 5, 2004, 11:09pm UTC](https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483/2 "2004-08-05T23:09:58Z")

</div>

```auto
today = new Date()
if(today.getDate() == 23){
//start your alarm or whatever
}

```

easy as pie… mmm… pie…

Prophet.

---

<div class="post-metadata">

**Author:** ![BigMT](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@BigMT](https://forum.kirupa.com/u/BigMT)\
**Post date:** [August 6, 2004, 2:58pm UTC](https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483/3 "2004-08-06T14:58:12Z")

</div>

it was the == that killed me!!

Thanks Prophet! You are a lifesaver!

I wish I could send you some pie!

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 6, 2004, 5:45pm UTC](https://forum.kirupa.com/t/fmx-date-object-frustration-need-help-bad/118483/4 "2004-08-06T17:45:23Z")

</div>

lol i try my best 😉  
and yes, pie is always welcome… unless it has nuts - i dont like nuts 😛  
lol

glad i could help,

Prophet.
