Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to get week start date in php

$firstday = date('l - d/m/Y', strtotime("this week"));
echo "First day of this week: ", $firstday;
Comment

php get this week date range

$monday = strtotime('last monday', strtotime('tomorrow'));
$sunday = strtotime('+6 days', $monday);
echo "<P>". date('d-M-Y', $monday) . " to " . date('d-M-Y', $sunday) . "</P>";
Comment

php get day of week number

echo date('d', strtotime('2022-02-02')); // 02
echo date('j', strtotime('2022-02-02')); // 2
Comment

PREVIOUS NEXT
Code Example
Php :: php post request 
Php :: jquery serialize php decode 
Php :: symfony change php version 
Php :: php get part of string 
Php :: php static dropdown list example 
Php :: command to create model with migration in laravel 
Php :: json to php array 
Php :: php number format comma and decimal 
Php :: how to check if key is present in json in php 
Php :: wp query search 
Php :: how to write javascript inside php 
Php :: php get object class 
Php :: remove last character from string php 
Php :: redirect from http to https laravel 
Php :: run a php project 
Php :: doctrine orm get all 
Php :: how to get shop page url in wordpress 
Php :: validation file in laravel 
Php :: the requested php extension bcmath is missing from your system 
Php :: php clear cache 
Php :: php location header 
Php :: php json decode not working on array 
Php :: give custom field name in laravel form validation error message 
Php :: php opendir 
Php :: php xml string 
Php :: php return new object 
Php :: adminlte in laravel 8 
Php :: ci base url dynamic 
Php :: php class extends exception 
Php :: replace text in string php 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =