V
V
vlad_lutsky2017-10-26 11:06:52
Twig
vlad_lutsky, 2017-10-26 11:06:52

How to write the current date in input using twig?

<td><input type="date" value='{{ "now"|date("d.m.Y") }}'></td>

Does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-10-26
@vlad_lutsky

Specify the date in this format "Ymd". Then it will be displayed in the input

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question