Support formats like "some-leading-text-before-formatting-characters%Y-%m-%d".