Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cloud Automations | Smart values date and times - last bussines day of year-1

Jens Hoffmann July 17, 2024

Hi all, 

I would like to automatically display the last day of the previous year. I tried that with this smart value: {{now.startOfYear.minusDays(1).format("dd.MM.yyyy")}} Unfortunately without success. May you please assist me?

Thanks and best regards, 

Jens 

2 answers

1 accepted

2 votes
Answer accepted
Kris Dewachter
Community Champion
July 17, 2024

Hi @Jens Hoffmann ,

As far as I can see, there is no "startOfyear" smart function.

Can you give this a try ?

{{now.startOfMonth.withMonth(1).minusDays(1).format("dd.MM.yyyy")}}

Best regards,

Kris

0 votes
Jens Hoffmann July 18, 2024

Hey Kris, it works. Many thanks :) 

 

Screenshot 2024-07-18 091544.png

Kris Dewachter
Community Champion
July 18, 2024

Hi @Jens Hoffmann 

Nice to hear.

Please feel free to click the green "Accept Answer" button if my answer was helpful.

Thank you and best regards,

Kris

Like Jens Hoffmann likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events