added date range and set default search values
add time and date functions from latest master