When using Shopify Flow you can set the Order's initial Status when the order is first created.
The easiest way to calculate a future date is to use Liquid code to:
- convert the date into seconds
- add the number of seconds to the date to get the new date
- format the output to match the required format.
The Due date must be in the YYYY-MM-DD format for the date to be recognized by the app.
Note: There are 86400 seconds in a day
The following Liquid code will add 5 days to the "Created Date" of the order and format it correctly to be read by the app.
{{order.createdAt | date: "%s" | plus: 432000 | date: "%Y-%m-%d" }}