Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get current date from year input php

$date_input = '2003';
$date_output= date( "Y-m-d", mktime( 0, 0, 0, 1, 1, $date_input ));
//date_output = 2003-01-01
Comment

current date time in php for input

<input type="datetime-local" name="followupon" value=<?php echo date('Y-m-dTH:i:s'); ?>">
Comment

PREVIOUS NEXT
Code Example
Php :: codeigniter base url automatic 
Php :: heroku mysql 
Php :: what is is_null in php 
Php :: php pdo fetch from db 
Php :: php associative array 
Php :: laravel make migration 
Php :: php stristr 
Php :: how to change the colum type in migration laravel 
Php :: laravel validation 
Php :: how to pass value from one php page to another using session 
Php :: how to host a php server 
Php :: learn php basic 
Php :: recorrer un array php 
Php :: get all weeks in month php 
Php :: insert chevron on form select field on caldera 
Java :: how to make phone vibrate android studio 
Java :: Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` 
Java :: import javax.validation.valid error 
Java :: isprime check formula java 
Java :: how to set the java_home in mac 
Java :: java how to print an array 
Java :: objectmapper maven dependency 
Java :: how to get the width and height of a string in java 
Java :: exit app android 
Java :: max long 
Java :: sololearn java shapes coding project 
Java :: read int from keyboard java 
Java :: Java get fps 
Java :: java find item in list by property 
Java :: java file reader utf 8 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =