Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dilfdo's avatar

how to get date and time seprately as out put from timestamp laravel5

i need to get the date and time sepratly from timestap of created at colum to show on my show.details.blade.php

<div class="row">
                <div class="col-md-6">
                    <span class="col-md-2">Time: </span>
                    <span class="col-md-4">{{$PhoneBooking->created_date}}</span>
                </div>

controller

    public function show($id)
    {
        $PhoneBooking = PhoneBooking::find($id);
        return view('booking.showBooking',compact('PhoneBooking'));

//        return "V";
    }

0 likes
2 replies

Please or to participate in this conversation.