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 2337 Aug 7, 2006, 9:58 AM
Thread Re: [rascal] If date question
jdgamble 2238 Aug 7, 2006, 10:30 AM
Thread Re: [jdgamble] If date question
rascal 2229 Aug 7, 2006, 10:18 PM
Thread Re: [rascal] If date question
jdgamble 2233 Aug 7, 2006, 10:39 PM
Thread Re: [jdgamble] If date question
rascal 2214 Aug 8, 2006, 8:08 AM
Thread Re: [rascal] If date question
jdgamble 2222 Aug 8, 2006, 9:51 AM
Thread Re: [jdgamble] If date question
rascal 2224 Aug 8, 2006, 10:19 PM
Post Re: [rascal] If date question
jdgamble 2198 Aug 9, 2006, 8:18 AM