How to retrieve data of previous month from date selector

Hello,

am using Grafana v9.5.3 and we use API to bring data from application.

in the parameters ‘From’ and ‘To’ we use $__from & $__to to bring the data, is there a way to parse previous month in from and to