I'm trying to format the date for a API query that needs to be formatted, could anyone help with the string?
{{dateRange1.value.start}}
I'm trying to format the date for a API query that needs to be formatted, could anyone help with the string?
{{dateRange1.value.start}}
@mrockwell Welcome to the forum!
What is the format you need for the query itself? MM/DD/YYYY? DD-MM-YYYY?
Thanks Scott!
MM/DD/YYYY
Is the API you are using, selecting or inserting into a database? If so, chances are that MM/DD/YYYY won't work and you will need to convert the value to a timestamp....
https://momentjs.com/docs/#/displaying/format/
{{ moment().subtract(35, "days").format("MM/DD/YYYY") }}