Tools for working with datestrings