Add convert_date_string helper

This adds a helper to make bug #854022 easier.

r?