---
title: "How we use date function in PHP?"  
description: "How we use date function in PHP?"  
author: "Amit Singh"  
published: 2011-03-17  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/435/how-we-use-date-function-in-php  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How we use date function in PHP?

In PHP, we use date function as\
date(format,timestamp)\
\
For Example:\
<?php\
echo date("Y/m/d") \
?>

## Answers

### Answer by Amit Singh

In PHP, we use date function as\
date(format,timestamp)\
\
For Example:\
<?php\
echo date("Y/m/d") \
?>


---

Original Source: https://www.mindstick.com/interview/435/how-we-use-date-function-in-php

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
