I am trying to create a reminder page that will use a cron job to run the page every day and I am using the comment sections with a datepicker input to let the user pick when to be reminded via email.
At this point I am stuck trying to establish the equality between the current date and the user defined.
I did the following
And even though today is 24/11/2015 and I add in my datepicker the same day/month/year I get Noooot as a respose.
I believe it's a date format issue when trying to establish the equality..but I don't know how to go about it.
At this point I am stuck trying to establish the equality between the current date and the user defined.
I did the following
- Code: Select all
<cms:comments page_id=k_page_id order='desc'>
<cms:set scheduled = '<cms:show reminder_date />' />
<cms:set date = '<cms:date />' />
<cms:if scheduled == date >
<p>Do something</p>
<cms:else />
<p>Noooot</p>
</cms:if>
</cms:comments>
And even though today is 24/11/2015 and I add in my datepicker the same day/month/year I get Noooot as a respose.
I believe it's a date format issue when trying to establish the equality..but I don't know how to go about it.