Skip to Content
0

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

Sep 28, 2017 at 05:45 PM

108

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mustafa Bensan Oct 02, 2017 at 11:38 AM
1

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.

Share
10 |10000 characters needed characters left characters exceeded
Tammy Powlas
Oct 02, 2017 at 09:48 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded