Out of curiosity, is there a reason why you're splitting up the components of the date? Normally they're kept together when stored (since you can always pick out bits and pieces of it later, if need be).
To answer your question, though, one way might be to use [man]explode/man on the date string (assuming it follows a known format).