How to get only date from datetime in CodeIgniter? – how to get current date in codeigniter?

Today, We want to share with you how to get current date in codeigniter.In this post we will show you codeigniter where dates greater than today, hear for get only dates from datetimes in codeigniter we will give you demo and example for implement.In this post, we will learn about How To Gets Currents Date & Time In JavaScript with an example.

How to get current date time in codeigniter?

Gets currents date time with Date Format in Codeigniter?

Load Dates Helper

$this->load->helper('date');

Get Date Time

$format = "%Y-%m-%d %h:%i %A";
echo mdate($format);
// this will print 
// 2021-09-06 08:15 PM 

Codeigniter DateTime Demo

load->helper('date');

$format = "%Y-%m-%d %h:%i %A";
echo mdate($format);

}

}
?>

I hope you get an idea about time format in codeigniter.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment