1430
Views
5
Comments
Solved
Day of week from a given date
Question

Hi

I have a date for eg: 30 march 2020. I want to know the day of week i.e. MONDAY.

Is there any outsytems function for this? 

2020-02-28 09-46-54
Eduardo Jauch
Solution

P.S. If you want the name of the day, you can, for example, have a Static Entity with the names and use the result of the DayOfWeek built-in function to fetch the correct name.

2020-02-28 09-46-54
Eduardo Jauch

Hi,

Yes. DayOfWeek: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Date_and_Time#DayOfWeek

It returns an integer indicating the day of the week: 0 to Sunday.

Cheers.

2020-02-28 09-46-54
Eduardo Jauch
Solution

P.S. If you want the name of the day, you can, for example, have a Static Entity with the names and use the result of the DayOfWeek built-in function to fetch the correct name.

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi Shubham,

you can check this functions:  Built-in Functions | Date and Time

All of these functions can be used in xy Expressions.

I hope this help you,

Cheers,
Nuno Verdasca

UserImage.jpg
Shubham Agarwal

Thanks a lot guys. You are the best.

2025-11-19 06-14-01
Miguel Verdasca
Champion

You don't have to thank .. Eduardo was faster than me :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.