Update date function to accessors/mutators.