Title: Widget {date} option
Last modified: August 21, 2016

---

# Widget {date} option

 *  Resolved [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-date-option/)
 * I want to use only the month or day and not the entire {date} in my widget for
   the calendar. Can anyone please help me out?
 * [http://wordpress.org/extend/plugins/my-calendar/](http://wordpress.org/extend/plugins/my-calendar/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/widget-date-option/#post-3755397)
 * Use {date format=”M, d”} (or your choice of date formatting) to customize the
   date. All date template tags can take custom formatting.
 *  Thread Starter [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755446)
 * Thank for that. But when I use the code like
 * <span> {date format=”F”} </span> for month
    <span> {date format=”d”} </span> 
   for day
 * the month appears correctly but my date gets messed up and {date format =”d”}
   is printed on the screen
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755452)
 * How are you using the code? Can you provide an exact sample from your template?
 *  Thread Starter [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755474)
 * My code in the widget is as foolows:
 *     ```
       <div id="events">
       <div class="item">
   
       <span class="month">{date format="F"}</span>
   
       <div class="event-date">
       <span class ="day">{date}</span></div>
       <h4>{link_title}</h4>
       <p class="time">From {time} until:{endusertime},{category}</p>
       </div>
       </div>
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 *  Thread Starter [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755475)
 * In the second {date} in the above code the display gets messed up and does not
   get parsed. I want to display the month in one line and the day in the other.
 *  Thread Starter [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755526)
 *     ```
       <div id="events">
       <div class="item">
   
       <span class="month">{date format="F"}</span>
   
       <div class="event-date">
       <span class ="day">{date}</span></div>
       <h4>{link_title}</h4>
       <p class="time">From {time} until:{endusertime},{category}</p>
       </div>
       </div>
       ```
   
 * this was my code for implementation
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755555)
 * Interesting. Each template item is only parsed once. However, there are multiple
   date template options – I recommend using {dtstart format=”F”} and {date}, respectively.
 * For the record, {date} only includes the base date information; {dtstart} contains
   a full timestamp including the date and time information.
 *  Thread Starter [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * (@aasrithg)
 * [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755562)
 * It worked thank you my widget looks the way I wanted it to.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Widget {date} option’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

## Tags

 * [date format](https://wordpress.org/support/topic-tag/date-format/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 8 replies
 * 2 participants
 * Last reply from: [aasrithg](https://wordpress.org/support/users/aasrithg/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/widget-date-option/#post-3755562)
 * Status: resolved