Hello,
Can anybody help me in getting the name of the day for a date?
for eg. getDay(today()) then it should return "Tuesday".
Also, how can we calculate the week range if you pass weeknum(today())? here, week range means from date range for that particular week.
Thanks,
Omkar
Discussion posts and replies are publicly visible
You can use the "Date Conversion & Operations" shared component. Please refer to this link https://forum.appian.com/suite/sites/shared-components/page/shared-components/record/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh-2jLnOmAzvg-XPsGoj-qds0NDCTDixdCA/view/summary
You can get the name for day from date as -
index( split( text( ri!testDate, "mmm/dddd/yyyy" ), "/" ), 2, "" )
to get the range use the code below to get two dates
/*day 1 of the week - Monday*/ ri!testDate - weekday(ri!testDate,3) /*Last day of the week - Sunday*/ ri!testDate + 7 - weekday(ri!testDate,2)
you can change the numbers to get the desired day of the week (if not Monday - Sunday).
Hi Omkar K,
One another way to achieve the first requirement is,
text(today(),"dddd")
Hope it helps!