Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 02, 2017 at 11:38 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 02, 2017 at 09:48 AM

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

    Add comment
    10|10000 characters needed characters exceeded