added functionality for string dates