Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php convert date and time to iso 8601

//Object Oriented Method

$datetime = new DateTime('2010-12-30 23:21:46');

echo $datetime->format(DateTime::ATOM); // Updated ISO8601


//Procedural Method

echo date(DATE_ISO8601, strtotime('2010-12-30 23:21:46'));
Comment

php timestamp to iso8601

$timestamp = '1268932078';

$iso8601 = date('c', $timestamp);
Comment

PREVIOUS NEXT
Code Example
Php :: __invoke in laravel 
Php :: Access-Control-Allow-Origin php laravel 
Php :: php send json post 
Php :: mysql get number of rows php 
Php :: wordpress remove taxonomy from post 
Php :: How do I get current taxonomy "term id" on wordpress? 
Php :: Converting timestamp to time ago in PHP 
Php :: how to upload two files on same form different path in codeigniter 
Php :: advantages of php 
Php :: php insert array into mysql 
Php :: insertion sort in php 
Php :: get date after 1 dayphp 
Php :: wp add menu page and subpage 
Php :: Laravel - Query Builder Left join 
Php :: Carbon Add Years To Date In Laravel 
Php :: laravel permissions 
Php :: create excel file using php] 
Php :: why we use .htaccess file in php 
Php :: laravel file custom name 
Php :: Verzeichnis einlesen php 
Php :: seprate day and year from laravel to timestamp 
Php :: laravel Auth::logoutOtherDevices 
Php :: elementor woo product hide add to cart 
Php :: php try json decode and check 
Php :: wp php get rows number from mysql 
Php :: php strpos 
Php :: Arr::only laravel 
Php :: remove behind comma php 
Php :: php add to array 
Php :: replace twig 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =