Posted inProgramming / Mysql / Mysqli / php

PHP Timestamp Date Time format Function

Today, We want to share with you PHP Timestamp Date Time format Function .
In this post we will show you PHP Date and Time, hear for How to Convert PHP Timestamp to Date Format with example we will give you demo and example for implement.
In this post, we will learn about PHP Date & Time Function with an example.

PHP Timestamp Date Time format Function

There are the Following The simple About PHP Timestamp Date Time format Function Full Information With Example and source code.

As I will cover this Post with live Working example to develop PHP Timestamp, so the some major files and Directory structures for this example is following below.

  • index.php

Example of The PHP Timestamp


This is where I will make a simple HTML form and PHP server side source code for our web application. To make the forms simply all souce code copy and write it into your any text editor Like Notepad++, then save file it as index.php.

 $val ){
      print "$key = $val
"; } $timedate_format = "Today's date: "; $timedate_format .= $student_reg_date['mday'] . "/"; $timedate_format .= $student_reg_date['mon'] . "/"; $timedate_format .= $student_reg_date['year']; print $timedate_format; ?>

Simple Print Current Timestamp using PHP

  • d – (01 to 31)display the day of the month
  • m – (01 to 12)display a month
  • Y – (in four digits)display a year
  • l (lowercase ‘L’) – display the day of the week

PHP time() Functions

print time()

PHP strtotime() Functions

print strtotime()

PHP mktime() Functions

print mktime()

PHP microtime() Functions

print microtime()

PHP date() Functions

print date()

echo "Pakainfo Date is " . date("Y.m.d") . "
"; echo "Pakainfo Date is " . date("Y-m-d") . "
"; echo "Pakainfo Date is " . date("l"); ?>

PHP date Output

Pakainfo Date is 2018/08/20
Pakainfo Date is 2018.08.20
Pakainfo Date is 2018-08-20
Pakainfo Date is Monday

php-timestamp Example

PHP Date with Time to Timestamp Conversion

Angular 6 CRUD Operations Application Tutorials

Read :


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about PHP Timestamp Date Time format Function.
I would like to have feedback on my 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.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype