DirectCheminee Posted October 29, 2018 Share Posted October 29, 2018 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 More sharing options...
DirectCheminee Posted October 30, 2018 Author Share Posted October 30, 2018 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now