Can you or subtract from DateTime ISO variable?

  • What Grafana version and what operating system are you using?
    10.0.3

  • What are you trying to achieve?
    I would like to get a datetime in ISO format then add 30, 60 or 90 days to it like you can with timedelta in python.

  • How are you trying to achieve it?
    I would like to take a datetime variable and then add days to it based on a drop down.

  • What happened?
    I have not found a way to do this.

I would like to be able to do something like this but in grafana.

query{
  account{
    start_date.timedelta(days=30)
  }
}

I am trying to find the number of times an account had an event in the first 30, 60 and 90 days.