date forat in php
<?php
echo date("F j, Y, g:i a")."<br>"; // March 10, 2001, 5:16 pm
echo date("m.d.y")."<br>"; // 03.10.01
echo date("j, n, Y")."<br>"; // 10, 3, 2001
echo date("Ymd")."<br>"; // 20010310
echo date('h-i-s, j-m-y, it is w Day')."<br>"; // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
echo date('\i\t \i\s \t\h\e jS \d\a\y.')."<br>"; // it is the 10th day.
echo date("D M j G:i:s T Y")."<br>"; // Sat Mar 10 17:16:18 MST 2001
echo date('H:m:s \m \i\s\ \m\o\n\t\h')."<br>"; // 17:03:18 m is month
echo date("H:i:s")."<br>"; // 17:16:18
echo date("Y-m-d H:i:s")."<br>"; // 2001-03-10 17:16:18 (the MySQL DATETIME format)
echo date('Y.m.d H:i:s');
Also in PHP:
- check type of php
- clear laravel webapp cache
- date functions in php
- check string is present or not in php
- change time format in php
- downlaod php 7.4 ubun tu
- date time pph
- check gettype is string php
- Yii::app()->request->get yii1
- error code php
- Day of Week Using carbon library
- format DateTime object php
- codeigniter validation text length
- check character in string php
- date example php
- command not found: laravel
- copnsole log in php
- d-m-Y php format with minutes
- Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php
- count number of characters php
- Custom Order By in CakePHP
- convert date to day of year php
- array if key exist php
- breaking long array in php