How to Get Full Day Name from Date in laravel php?

Hello ,i would like to how to get full day name from date in laravel php. i will impletement date to day name, date number to day name and also other.

SO Let’s See : How to get full day name from date in laravel php

How To Get Full Day Name From Date In laravel php

index.php

<?php
  
    $date = "2022-03-11";
    $FDate = date('l', strtotime($date));
  
    echo $FDate;
  
?>

Output:

How to get full day name from date in laravel php?

Friday

Example 2: MYSQL Get Day Name from Current Date

index.php

<?php
  
    $FDate = date('l');
  
    echo $FDate;
  
?>

Output:

Friday

Example 3: MYSQL Get Day Name from Number

<?php
  
    $NumofDay = "1";
    $FDate= date('l', strtotime("Monday +{$NumofDay} days"));
  
    echo $FDate;
  
?>

Output:

Tuesday

i hope this code is helpful…..

Leave a Comment