added date formats

master
Gustavo Luigi 2023-06-29 08:14:57 -03:00
parent 47c402b159
commit 008d2b0318
1 changed files with 24 additions and 1 deletions

View File

@ -18,12 +18,35 @@


<p class="mt-3 mb-4">
{!!$content->beschreibung!!}
{{-- $content->beschreibung --}}
</p>

<p><time datetime="{{$content->datum}}">Datum</time></p>

<!-- full date -->
<p>{{$content->datum}}</p>

<!-- formatted date -->
<p>Formatted Date: {{date("d.m.Y", strtotime($content->datum))}}</p>

<!-- get only year -->
<p>Year: {{date("Y", strtotime($content->datum))}}</p>
<p>Year: {{date("y", strtotime($content->datum))}}</p>

<!-- get only month -->
<p>Month: {{date("m", strtotime($content->datum))}}</p>

<!-- get only day -->
<p>Day: {{date("d", strtotime($content->datum))}}</p>

<!-- get only hour -->
<p>Hour: {{date("H", strtotime($content->datum))}}</p>

<!-- get only minutes -->
<p>Minute: {{date("i", strtotime($content->datum))}}</p>

<!-- get only seconds -->
<p>Second: {{date("s", strtotime($content->datum))}}</p>

</div>
</div>