Add Func: Get a custom date by rule str.