I have a magazine blog that I am creating in Drupal 7. I have the date displayed in the upper right hand corner (JAN 2012). How could I have this display work dynamically based on the post date of the article shown or current month if on the main view (blog) landing page? Each blog landing page is a view so the content is filtered that way. I two custom content types to help filter content and custom field created on each as the publish date to push and pull content based on the month. I need to use that publish date field as the date. How do I tap into that field for the date I need?
You haven't explained the context of this date. Is it representing results coming out of views like "this post was 5 days ago" or do you just want todays date on the upper right?
This will print the current date on your theme template.
echo date('Y M D');
Share some more info on what this date is giving the user exactly; Drupal has some very helpful code for this kind of thing, such as format_date().