added date formats
parent
47c402b159
commit
008d2b0318
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue