Showing an elegant way on passing dates to your REST API’s and webservices using Express route parameters and regex validation standard features.
Express
Express: middleware function with custom parameters
Implementing an Express middleware function that can handle custom parameters.