PHP tutorial in Hindi part – 29 – How to use date and time function in php



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

Nguồn: https://newblurayrelease.com/

Xem thêm bài viết khác: https://newblurayrelease.com/lap-trinh-php/

  • WHAT I AM USE FOR PM ?

    Altaf Patel July 29, 2020 2:14 pm Reply
  • It is very helpful me thanks for upload this video👍

    FUTURE STAR July 29, 2020 2:14 pm Reply
  • How we can use date diff function .I will try but it will show error

    Ankush kuthyal July 29, 2020 2:14 pm Reply
  • very easy way to understand yours video so thank u so much sir

    ruchi Sharma July 29, 2020 2:14 pm Reply
  • nice and awsome sir thnxx

    Suraj Pol July 29, 2020 2:14 pm Reply
  • how to add hindi language date,,,, example 20 अप्रैल 2017

    Dhiren Tuladhar July 29, 2020 2:14 pm Reply

Leave a Reply

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