Posts by Nilton Romani • 1 point
2 posts
-
0
votes3
answers226
viewsA: Value of the date is changing month by day
<?php $dias = $_POST['duration']; $dataInicial = $_POST['dataInicial']; $dataFinal = date('d/m/Y', strtotime("+$dias days",strtotime($dataInicial))); $dataInicial = date('d/m/Y',…
-
-2
votes3
answers226
viewsQ: Value of the date is changing month by day
<input type="text" id="inicio" class="cad-input" name='dataInicial' value="<?php echo date('d/m/Y'); ?>" style="width: 190px;"></> , the variable in the format date('d/m/Y') and is…