parse_dates middleware takes optional milliseconds into consideration

taking optional milliseconds into consideration