Jump to content
DirectCheminee

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 :)

 

 

 

Share this post


Link to post
Share on other sites

Si ca peut aider quelqu'un .. 

 


{assign var='dateMax' value='20181030235959' scope='global'}
{assign var='dateActu' value=$smarty.now|date_format:'%Y%m%d%H%M%S' scope='global'}

{if $dateActu < $dateMax}
    //...
{else}
  //....
{/if}

 

Merci

bonne journée :) 

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More