add factory method to TimePeriod for Date