I use this code in React app:
<Flatpickr options={{
enableTime: true,
dateFormat: "Y-m-d H:i",
defaultDate: moment().add(-30, 'days').toDate(),
}}
But default date when I open the page is not minus 30 days. It's the current date.
Do you know what is the proper way to set the default date to be -30 days in React-Flatpickr?