Gossamer Forum
Quote Reply
GT::Date
Hi,

I would like to add a less than to the following:

<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07')%> but less than ($Reg_Date, '2006-12-09')

any help would be appreciated!


I guess something like:

<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07')%>
<%if GT::Date::date_is_smaller($Reg_Date, '2006-12-09')%>
<%endif%>
<%endif%>

Last edited by:

rascal: Nov 27, 2006, 9:42 PM
Quote Reply
Re: [rascal] GT::Date In reply to
Can anyone help with this?
Quote Reply
Re: [rascal] GT::Date In reply to
Maybe

<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07') and GT::Date::date_is_smaller($Reg_Date, '2006-12-09')%>

<%endif%>
Quote Reply
Re: [Payooo] GT::Date In reply to
Would be interesting to see if that does work :)

On the safe side, what was posted first should work fine:

Code:
<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07')%>
<%if GT::Date::date_is_smaller($Reg_Date, '2006-12-09')%>
whatever here
<%endif%>
<%endif%>

Hope that helps.

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] GT::Date In reply to
Thanks Payooo, Andy,


This does work:

<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07') and GT::Date::date_is_smaller($Reg_Date, '2006-12-09')%>

<%endif%>

Last edited by:

rascal: Dec 6, 2006, 8:42 PM
Quote Reply
Re: [rascal] GT::Date In reply to
Code:
<%if GT::Date::date_is_greater($Reg_Date, '2006-08-07')%>
<%if GT::Date::date_is_smaller($Reg_Date, '2006-12-09')%>
whatever here
<%endif%>
<%endif%>

Did that work?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] GT::Date In reply to
Yes, that also works.