change API `date->rfc3339-date' to support change string format