Added GetBeginOfDay and GetEndOfDay.