I have this code,
<div class="form-group">
<label class="col-sm-2 control-label" for="date-created">Date Created</label>
<div class="col-sm-10">
@if (isset($post->created_at))
<input type="date" class="form-control" id="date-created" name="created_at" value="{{ date('d/m/Y', strtotime($post->created_at)) }}">
@else
<input type="date" class="form-control" id="date-created" name="created_at" placeholder="Enter the date the blog post created">
@endif
</div>
</div>
What I am trying to do is, display the date back from the database to the input box of type allowing user to edit the date.
but this was shown when rendering on the browser
What the best thing to do with that?
This may be a simple problem, but I don't find a simple explanation for why it doesn't work for me.