Search
 
SCRIPT & CODE EXAMPLE
 

PHP

convert dd/mm/yyyy to yyyy-mm-dd in mysql php

$var = '20/04/2012';
$date = str_replace('/', '-', $var);
echo date('Y-m-d', strtotime($date));
Comment

yyyymmdd to yyyy-mm-dd php

<?php
// both lines output 813470400
echo strtotime("19951012"), "
",
     strtotime("12 October 1995");

// prints 1995 Oct 12
echo date("Y-m-d", strtotime("19951012"));
?>
Comment

PREVIOUS NEXT
Code Example
Php :: composer create project laravel 
Php :: php show active page 
Php :: current url wordpress 
Php :: <?php echo do_shortcode(); ? with variable 
Php :: array reduce associative array php 
Php :: Class "AppHttpControllersAdminAuth" not found 
Php :: laravel select default old value 
Php :: add log in laravel 
Php :: php json request get value of an array element 
Php :: foreach loop laravel 
Php :: php datum formatieren 
Php :: faker laravel 
Php :: twig is in string 
Php :: twig get array key name 
Php :: php stop execution 
Php :: random 6 digit number php 
Php :: display custom post type 
Php :: laravel error storage permission denied 
Php :: laravel model query limit 
Php :: laravel session 
Php :: json to array php 
Php :: download laravel 8 zip 
Php :: laravel model exists id 
Php :: how remove empty value in array php 
Php :: PHP File Read Modes 
Php :: var_dump php 
Php :: hasone relation in laravel 
Php :: php array length for loop 
Php :: laravel read file from tmp 
Php :: insert data using mysqli in php 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =