This is not a WordPress question, but to help you out:
function displaydate() {
return date( 'd/m/Y G:i', strtotime( '-6 hours' ) );
}
add_shortcode('date', 'displaydate');
The shortcode itself should work fine.
This is not a WordPress question, but to help you out:
function displaydate() {
return date( 'd/m/Y G:i', strtotime( '-6 hours' ) );
}
add_shortcode('date', 'displaydate');
The shortcode itself should work fine.