Title: Styling the Date
Last modified: August 21, 2016

---

# Styling the Date

 *  [juniebear](https://wordpress.org/support/users/juniebear/)
 * (@juniebear)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/styling-the-date-2/)
 * Hi,
 * I need to somehow change the style of the date. If I change the code in the core
   it works, but I don’t want to have to change the code with every update. I have
   tried adding a filter in my functions.php file, but either I’m missing something
   or its not possible, I’m not sure which. This is the closest I’ve gotten so far
   but the date that it’s giving me is today’s date and not the date of the event.
   What its supposed to look like is a box with a background with the date on top,
   month in the middle and year on the bottom. Is there any other way to achieve
   this? Thanks in advance!
 * function changeStartDate($eventStartDate){
 * $eventStartDate=apply_filters(‘gg_before_event_start_date’ ,'<div class=”fancy_date”
   ><p class=”fancyday”>’) . date_i18n((‘d’),strtotime($meta[‘gg_event_date_start_standard_format’])).'
   </p><p class=”fancymonth”>’ . date_i18n((‘M’),strtotime($meta[‘gg_event_date_start_standard_format’])).'
   </p><p class=”fancyyear”>’ . date_i18n((‘Y’),strtotime($meta[‘gg_event_date_start_standard_format’])).
   apply_filters(‘gg_after_event_start_date’ ,'</p></div>’);
    return $eventStartDate;}
   add_filter(‘gg_event_start_date’,’changeStartDate’);
 * [https://wordpress.org/plugins/event-geek/](https://wordpress.org/plugins/event-geek/)

The topic ‘Styling the Date’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/event-geek_c9c883.svg)
 * [Event Geek](https://wordpress.org/plugins/event-geek/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-geek/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-geek/)
 * [Active Topics](https://wordpress.org/support/plugin/event-geek/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-geek/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-geek/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [juniebear](https://wordpress.org/support/users/juniebear/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/styling-the-date-2/)
 * Status: not resolved