Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php print datetime

Get a Time
  
  echo "The time is " . date("h:i:sa");

Here are some characters that are commonly used for date:

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 - 24-hour format of an hour (00 to 23)
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)
  
  
  
Comment

show date php

check here link:   http://www.eltcalendar.com/stuff/datemysqlphp.html
Comment

PREVIOUS NEXT
Code Example
Php :: laravel controller return message 
Php :: two digits after decimal point in php 
Php :: laravel migration remove unique constraint 
Php :: php text colors 
Php :: get product category url woocommerce 
Php :: php get first and last day of previous month 
Php :: how to get length of object in php 
Php :: return error when duplicated laravel 
Php :: laravel model transaction 
Php :: get template part pass variable 
Php :: php get string between two strings 
Php :: php session regenerate id 
Php :: wordpress logout redirect to home 
Php :: Check duplicate email in laravel using jQuery 
Php :: alert php 
Php :: make model controller in single command 
Php :: while loop in laravel 
Php :: include php 
Php :: php remove slash from string 
Php :: phph get server protocol 
Php :: how to switch from php7.4 to php7.3 mac 
Php :: symfony exclude class from autowiring 
Php :: php append file 
Php :: how check if variable is resgister in laravel 
Php :: How to get the current date in PHP? 
Php :: laravel go back to previous page blade 
Php :: how to get the values of other fields in acf validate values 
Php :: checks number only in php 
Php :: forward parameter from blade to another blade with filter 
Php :: what sign is less than or equal to php 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =