check for different datetime formats