Question 4 Replies 7631 Views × Close popover Abishek Sekar (Connect@Abicom) TTEC Senior Developer TTEC IN View Profile Send Message Connect@Abicom Member since 2015 41 posts TTEC Posted: March 31, 2017 Last activity: April 27, 2017 Posted: 31 Mar 2017 3:22 EDT Last activity: 27 Apr 2017 6:09 EDT Closed Is there any function available in pega to return the day name for a given date? Eg : If input is Date value(20170331) then i should get day name(Friday) ***Updated by moderator: Lochan to move post from Applications community to PSC*** Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 4 years ago Posted: 31 Mar 2017 5:49 EDT × Close popover Suma Bhuvanagiri (SumaB801) Verizon MTS III CSIT System engineer Verizon IN View Profile Send Message SumaB801 Verizon replied to Connect@Abicom Hi @Anytimeweekday("20150101T010101"). you can use this function. Regards Suma Posted: 4 years ago Updated: 4 years ago Posted: 5 Apr 2017 16:19 EDT Updated: 5 Apr 2017 16:18 EDT × Close popover Poornachandra V (Poorna) Tata Consultancy Services Senior System Architect Tata Consultancy Services US View Profile Send Message Poorna Tata Consultancy Services replied to Connect@Abicom It can be achieved in two steps. 1. Use the function @DateTime.weekday(Date). Pass Simple Date in the format YYYYMMDD. This function will give number for the day. If it is Sunday-1 Monday - 2 ..... and Saturday - 7. 2. Use decision table to match the name of the day with output of the above function. --Poornachandra Posted: 4 years ago Posted: 25 Apr 2017 7:13 EDT × Close popover Apurva Jaiswal (apurva) HCL Senior Software Engineer HCL IN View Profile Send Message apurva HCL replied to Connect@Abicom steps:- 1.)convert your given date to Big Decimal by using @dateTimeToBigDecimal("20170331","Date",tools) 2.)now use @weekday() function as @weekday( @dateTimeToBigDecimal("20170331","Date",tools)) Note:-@weekday function will take bigdecimal as ita parameter and return integer respective to weekday. ex-sun-01,mon-02,tue-03.... 3.)param.a=@weekday( @dateTimeToBigDecimal("20170331","Date",tools)) 4.)a=6 Posted: 4 years ago Posted: 27 Apr 2017 6:09 EDT × Close popover Ashok Kumaresan (ashokk09) Areteans Tech Areteans Tech IN View Profile Send Message ashokk09 Areteans Tech replied to Connect@Abicom you can use @formatdatetime function to find the day of given date. Let us know if it works.