How to get previous work day?

Hi,
I want to write previous work day in a web page I use this xaml

It worked pretty well but if today is 01.12.2022 previous day should be 30.11.2022 but this flowchart gives me 30.12.2022.
How can I solve this problem?
Thanks.

Hi @makboga ,

What about this

Now.AddDays(-1).ToString(“dd/MM/yyyy”)

Hi @makboga

How about this expression

New DateTime(Now.Year,Now.Month,Now.day).AddDays(-1)

New DateTime(Now.Year,Now.Month,Now.day).AddDays(-1).ToString("dd/MM/yyyy")

image

Regards
Gokul

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.