add date string processing functions