date canonicalization