filter.replace(typesense_regex_date_range_start, (full_match, prefix, month, day_year_hour_minute, postfix) => {
return '[' + new Date(month + day_year_hour_minute).getTime().toString() + '..'
}).replace(typesense_regex_date_range_end, (full_match, prefix, month, day_year_hour_minute, postfix) => {
return '..' + new Date(month + day_year_hour_minute).getTime().toString() + ']'
}).replace(typesense_regex_date_comparison, (full_match, prefix, leading_white_space, month, day_year_hour_minute, postfix) => {
return prefix + new Date(month + day_year_hour_minute).getTime().toString() + ' '
})