return the string for date types if passed for search