Yet another solution (for this very specific case): Use an int to represent a date in yyyymmdd format. This works great to sort and it's trivial to see the value of a date in the debugger:
(gdb) bt #0 day_of_the_week (yyyymmdd=20130522) at kk.cpp:4 #1 0x00000000004008df in main () at kk.cpp:11
This is a feature that pretty much no other representation of dates has.

Find content
Not Telling