PHP Plain date format
Format date from yyyy-mm-dd hh:mm:ss TO yyyymmddhhmmss
Copy this code and paste it in your HTML
/**
* Formatta una data dal formato yyyy-mm-dd hh:mm:ss in yyyymmddhhmmss
*/
function plainDate( $d ) {
return( $dd[0].$dd[1].$dd[2].$hp[0].$hp[1].$hp[2] );
}
Report this snippet
Comments
Subscribe to comments