In this video tutorial we will learn about date and time in php, The PHP date() function is used to format a date and/or a time.
syntax : date(format,timestamp)
d - Represents the day of the month (01 to 31)
m - Represents a month (01 to 12)
Y - Represents a year (in four digits)
l (lowercase 'L') - Represents the day of the week
Here are some characters that are commonly used for times:
h - 12-hour format of an hour with leading zeros (01 to 12)
i - Minutes with leading zeros (00 to 59)
s - Seconds with leading zeros (00 to 59)
a - Lowercase Ante meridiem and Post meridiem (am or pm)
#PHPtutorialinHindi #PHPtutorial