Skip to main content
1
results
Andrew Fletcher
You can create a new date/time format by navigating to: Admin -> Configuration -> Regional and Language -> Date and Time format and click on 'Add Format'. Once you’ve created date format, you can control the way date is displayed on the node using preprocess function. In {theme_name}.theme file, add the following lines /** * Implements hook_preprocess_node */ function THEME_NAME_preprocess_node(&$variables) { // Getting the node creation time stamp from the node object. $date...