Posted Tue, 16 Jun 2020 21:29:35 GMT by

Hi All,

 

I am looking for the function or expression that can help me get the day of the week, 

I have tried Day(Date()) but it gives me the day of the month.

e.g : 06/16/2020 - Day(Date()) i get 16. 


I am looking for the day of the week. like Monday, Tuesday extra 

 

Thanks,

Naga katari

Posted Tue, 16 Jun 2020 23:08:26 GMT by

Hello Naga,

If you run the following steps within task builder, you will see the current day:

<AMVARIABLE NAME="vardate" VALUE="" />
<AMTEXT ACTIVITY="format_datetime" RESULTVARIABLE="vardate" DATETIMEFORMAT="ddd" />
<AMSHOWDIALOG>%vardate%</AMSHOWDIALOG>

Posted Tue, 16 Jun 2020 23:39:54 GMT by

If you do %WeekdayName(Weekday(Now))%, it returns Tuesday for today. You should be able to see more information in the BASIC scripting part of Automate's help file.

You must be signed in to post in this forum.