Level 18
Are you hard refreshing when you're checking? The browser will keep the old values
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello i have this code 2 date pickers that default value get the first day of current week and last day of current week, the format is DAY/MONTH/YEAR but in chrome the format shows MONTH/DAY/YEAR this is my code:
<div class="col-auto">
<label for="startDate">Date Fillimi</label>
<input type="date" name="startDate" id="startDate" class="dateField"
value="{{$startDate == null ? date("dd-mm-YYYY", strtotime('monday this week')) : $startDate }}"/>
</div>
<div class="col-auto">
<label for="endDate">Date Mbarimi</label>
<input type="date" name="endDate" id="endDate" class="dateField"
value="{{$endDate == null ? date("dd-mm-YYYY", strtotime('sunday this week')) : $endDate }}"/>
</div>
Please or to participate in this conversation.