Reversing the way date fields are stored