Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php format date

<?php
  	$date = '05/05/2021';
	echo DateTime::createFromFormat("d/m/Y", $date)->format('Y-m-d');
	//2021-05-05
Source by es.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #format #date
ADD COMMENT
Topic
Name
5+8 =