Jump to content

Help create capsules using start and end dates with times.


Go to solution Solved by Thorsten Vogt,

Recommended Posts

Posted

Im trying to create capsules using formulas but get errors. 

"capsule('August 15 2023 21:00', 'August 17 2023 17:00')"

Do I need to define the asset? 

 

Thanks

  • Solution
Posted

Hi Jason,

you need to specify the date in an ISO 8601 format, then it should work. In the following example I am creating a condition with one capsule from Aug 19th to Aug 20th using UTC+2 timezone:

condition(10d, capsule('2023-08-19T00:00:00+02:00', '2023-08-20T00:00:00+02:00'))

Regards,

Thorsten

Posted

When using condition() you need to specify a maximum capsule duration. 10d means 10 days. I could have shortened this to 1 day in my example, as the capsule only captures the 19th of August.

Regards,

Thorsten

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...