Changing the method name to be more clear. Adding the implementation for the date time type.