I'm using Omega for theming and I want to show created date time in teaser Article.
I found this
<?php print format_date($node->changed, 'article') ?>
But I don't know where to put it.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
To print date add this
<?php print date('d M Y', $node->created); ?>
The output of this will be something like: 12 Dec 2014.
You can change
'd M Y' part for different output, take a look at date() function.
I think is doable via UI, if you go to content type -> edit should be an option for show that and then if you go to manage display just enable it.
The other way you mean is editing the tpl.php file on your theme and add: $node->created
for this last way I highly recommend you read the documentation