Refactor `quoted_date`

Move microseconds formatting to `AbstractAdapter`.
Merge pull request #17998 from kamipo/refactor_quoted_date

Refactor `quoted_date`