convert selector dates to ms