Move parsing of a date string to PluginUtils.