Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [rascal] If date question

Quote Reply
Re: [rascal] If date question In reply to
What kind of errors are you getting? What is your exact code on what template?

Make sure your date fields are in the right case... Add_Date... Mod_Date

The function only returns true or 1 if the first date is smaller than the second.

Also I forgot to add the extra ' at the end of the if statement...


Code:

<%if GT::Date::date_is_smaller($Add_Date, '2006-08-07')%>
yeah!
<%endif%>

This example should work.

Hope this helps,

- Jonathan
Subject Author Views Date
Thread If date question rascal 2336 Aug 7, 2006, 9:58 AM
Thread Re: [rascal] If date question
jdgamble 2237 Aug 7, 2006, 10:30 AM
Thread Re: [jdgamble] If date question
rascal 2228 Aug 7, 2006, 10:18 PM
Thread Re: [rascal] If date question
jdgamble 2231 Aug 7, 2006, 10:39 PM
Thread Re: [jdgamble] If date question
rascal 2213 Aug 8, 2006, 8:08 AM
Thread Re: [rascal] If date question
jdgamble 2221 Aug 8, 2006, 9:51 AM
Thread Re: [jdgamble] If date question
rascal 2223 Aug 8, 2006, 10:19 PM
Post Re: [rascal] If date question
jdgamble 2197 Aug 9, 2006, 8:18 AM