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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] GT::Date In reply to
Yes, that also works.