I use templating and add a variable like this
Did you investigate the response from Elasticsearch? Are you sure there exist documents in ES for the dashboard time range?