added new methods to DateTimeAdapter