Jump to content

Condition en fonction de la date


Recommended Posts

Bonjour a tous, 

 

Je souhaiterais faire une condition en fonction de la date du jour

qqch comme ceci

{assign var='dateMax' value='20181031235959' scope='global'}

{assign var='dateActu' value=$smarty.now|date_format:'%Y%m%d%H%i%s' full=1   scope='global'}

 

{if $dateActu < $dateMax}

...

{/if}

 

pourriez vous m'indiquer comment déclarer ces variables ($dateActu / $dateMax) SVP / Merci 

 

Bonne journée :)

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...