Added try-except for date time just in case