Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {# conditional_my_date_field_equal #}
- {{ post.my_date_field == "now"|date('Ymd' ) ? '1' : '0' }}
- {# conditional_my_date_field_less #}
- {{ post.my_date_field < "now"|date('Ymd' ) ? '1' : '0' }}
- {# conditional_my_date_field_more #}
- {{ post.my_date_field > "now"|date('Ymd' ) ? '1' : '0' }}
Add Comment
Please, Sign In to add comment