> date and time in php ~ Online tutorial

date and time in php

date and time function allow you to extract and format the date and time on the server.
Note
These function depend on the locale settings of the server
date()

date() function formats a local time/date
The following describes the format arguments
  • a:am or pm
  • A:AM or PM
  • d:Numeric day of the month
  • D:Short day abbreviation
  • F:Full month name
  • g:12-hour time without leading zero
  • G:24-hour time without leading zero
  • h:12-hour time with leading zero
  • H:24-hour time without leading zero
  • i:mintues with leading zero
  • L:Boolean indicating a leap year
  • m:Numeric month with leading zero
  • M:Short month abbreviation
  • n:Numeric month without leading zero
  • O:GMT offset in[+]HHMM format
  • s:seconds
  • S.Suffix to numerical date
  • T:Time zone name
  • U:Unix seconds
  • w:Numeric day of the week
  • y:two digit year
  • Y:Four digit year

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: