cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Day(monday,tuesday etc) in design Studio1.6

swagata
Explorer
0 Kudos

Hi all,

My requirement is to show day based on current date i was trying to put a logic explained below:

var a=APPLICATION.getInfo().dateNowInternalFormat;

than I have extracted the current week number(39 this week).

from the week number i got the first day of the week but it has return wrong value.

please helpme on these.is there any way to get the day (monday ,tuesday)from the current date?

Accepted Solutions (1)

Accepted Solutions (1)

MustafaBensan
Active Contributor

Hi Swagata,

You can use the getDayOfWeek() method of the Design Studio SDK Community Simple Date Object Component to retrieve the integer value value of the current weekday (0-Sunday, 1-Monday, 2-Tuesday, 3-Wednesday, 4-Thursday, 5-Friday, 6-Saturday, 7-Sunday) and then an array reference to lookup the corresponding text.

Regards,

Mustafa.

Answers (1)

Answers (1)

TammyPowlas
Active Contributor
0 Kudos

Hi - is your data source a BEx query? If so, see this: https://archive.sap.com/discussions/thread/383848