2
I want to set the current date in this input type date; using this way with php it only gives the value of the current date, but viewing shows only dd/mm/yyyy, but inspecting the code the value of "value" is with the current date. Someone can help me ?
<input class='col-4' type='date' name='Dsaida' id='DSaida' value='<?php echo date("d/m/Y"); ?>'>
Thanks, it worked out
– Carlos
Just one detail: the format
ano-mês-dia
is called ISO 8601 (the American format would bemês/dia/ano
). And the RFC 3339 is a profile of ISO standard 8601 (is as if RFC is an extension/subset of ISO, as it restricts some formats while allowing others, etc)– hkotsubo
Thanks @hkotsubo, modified my reply.
– Dobrychtop