How to get selected range time from panel using Wild Graphql Data Source

Hi,
I installed Grafana 11.0.0 and I’m using Wild Graphql Data Source to create a dashboard for my website analysis. I create a graphql query like this to get total visits for the selected range time:
query {
viewer {
accounts(filter: { accountTag: “account_tag” }) {
total: rumPageloadEventsAdaptiveGroups(
filter: {
AND: [
{
datetime_geq: “${__from:date:iso}”,
datetime_leq: “${__to:date:iso}”

        },
        {
          OR: [
            {
              siteTag: "$SiteTag"
            }
            
          ]
        },
        {
          bot: 0
        }
        
      ]
    },
    limit: 1
  ) {
    sum {
      visits
    }
  }
}

}
}

But I get this error: {
“error parsing args for "rumPageloadEventsAdaptiveGroups": filter: AND: datetime_geq: not an iso8601 time”.
When I enter the start and end date manually, the query worked perfecly. But it didn’t work when using functions like: ${__from:date:iso} or ${__from:date}.

Could you please help me to resolve this issue.

what does you source date format look like?

If it does not match, the date or the iso: date format exactly, it won’t work, but luckily there are other formats and options:

To match your date format you can try the last option, and specify a format that matches your data’s date using the formatting options from:

https://momentjs.com/docs/#/displaying/

Thank you @sowdenraymond for your reply. the source date is the date selected from panel.

image