php - Why doesn't this code render the time in addition to the date? -


this code renders date (month, day, year) not time. being used on php upload site. grateful suggestions. thank you.

<time datetime="<?= date( 'm-d-y', strtotime( $file->added ) ) ?>"><?= date( 'm.d.y', strtotime( $file->added ) ) ?> 

you need add request output time parameter 1 of date() function.

<time datetime="<?= date( 'm-d-y h:i:s', strtotime( $file->added ) ) ?>"><?= date( 'm.d.y h:i:s', strtotime( $file->added ) ) ?> 

Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -