Add a new function for translate the date string