Format a date within a struct

Something very similar was discussed recently, should get you started.