cancel
Showing results for 
Search instead for 
Did you mean: 

DayNumberOfWeek(CurrentDate()) giving incorrect results

0 Kudos

I'm using

DayNumberOfWeek(CurrentDate()) function . As per documentation the function would return 1 if current day is Monday. But I'm using this function on Thursday(9/13/2018) and it's returning 5 instead of 4. Please suggest

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Thanks Again Rodolfo

rodolfo_bermudezneubauer3
Active Participant
0 Kudos

Hi, you should check your calendar locale settings in Windows. Most probably, your settings define Sunday as the first day of the week.

Regards

0 Kudos

Thanks Rodolfo for quick response.

I updated my local calendar setting to be first day as Monday. But after this change, I tried to print CurrentDate() it is returning 9/14/2018,Where as it is still 9/13/2018 today( Thursday ) . I am located CST.

rodolfo_bermudezneubauer3
Active Participant

Hi, you're welcome. You must have something wrong in your Windows Time & Date settings.

As this is an issue than concerns MS Excel and your Windows Time & Date Setting and has nothing to do with SAP Dashboards, I suggest you seek on the Microsoft forums.

Good luck!

Regards