samedi 15 août 2015

how to bold only today's date in series of calendar events



I'm trying to create a widget that includes the next six upcoming calendar events, and I'd like it to bold those events for just today. I have the calendar entry part working fine, but the bold part eludes me. Conceptually I know how to do it -- make a conditional formatting check -- but every time I try to code it, it doesn't work. So would someone be so kind as to look at what I currently have and tell me specifically how to code it properly?

Here's what I have for the entries:

#C0SM/d EEE hh:mma# #C0TITLE#
#C1SM/d EEE hh:mma# #C1TITLE#

...and so on. So if today is August 15 and the first event is August 15, and the second event is August 20, the widget currently shows something like this:

8/15 Sat 12:00PM Post to XDA and ask for help
8/20 Thu 03:00PM Check XDA for feedback


How I'd LIKE it to look would be like this:

8/15 Sat 12:00PM Post to XDA and ask for help
8/20 Thu 03:00PM Check XDA for feedback


If someone could reply to this with the exact, proper coding to make that would be fantastic. Thanks!



Aucun commentaire:

Enregistrer un commentaire