PHP

How to get previous date from given date in php

How to get the previous date from a given date in PHP

Just insert below code and you will get the previous date

<?php echo date(“D jS M Y”,strtotime(“-1 days”));?>

Here is output Mon 10th Aug 2020

Basant

Recent Posts

How to make dependent dropdown of state and district using cakephp2 form?

Creating dependent dropdowns in CakePHP 2 involves using AJAX to dynamically load data into the…

6 months ago

How to make id as auto increment in postgrey SQL?

just add below code in column properties id Default input Method: 1nextval('form_submissions_id_seq'::regclass) Method: 2 Via…

6 months ago

How to Add Auto Increment to a Column in PostgreSQL ?

Learn how to efficiently set up auto-increment columns in PostgreSQL with this step-by-step guide. From…

8 months ago