php add current time using html form code example Example: date now php echo date('c'); // 2015-07-27T00:00:00+02:00