Question4Replies7342Views×Close popoverAbishek Sekar (Connect@Abicom) Serendebyte Senior Developer Serendebyte IN View ProfileSend Message Connect@Abicom Member since 2015 41 posts Serendebyte Posted: March 31, 2017Last activity: April 27, 2017Posted: 31 Mar 2017 3:22 EDTLast 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 popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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: 3 years agoPosted: 31 Mar 2017 5:49 EDT×Close popoverSuma Bhuvanagiri (SumaB801) Verizon MTS III CSIT System engineer Verizon IN View ProfileSend MessageSumaB801 Verizon replied to Connect@AbicomHi @Anytimeweekday("20150101T010101"). you can use this function. Regards Suma Posted: 3 years agoUpdated: 3 years agoPosted: 5 Apr 2017 16:19 EDTUpdated: 5 Apr 2017 16:18 EDT×Close popoverPoornachandra V (Poorna) Tata Consultancy Services Senior System Architect Tata Consultancy Services US View ProfileSend MessagePoorna Tata Consultancy Services replied to Connect@AbicomIt 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: 3 years agoPosted: 25 Apr 2017 7:13 EDT×Close popoverApurva Jaiswal (apurva) HCL Senior Software Engineer HCL IN View ProfileSend Messageapurva HCL replied to Connect@Abicomsteps:- 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: 3 years agoPosted: 27 Apr 2017 6:09 EDT×Close popoverAshok Kumaresan (ashokk09) Areteans Tech Areteans Tech IN View ProfileSend Messageashokk09 Areteans Tech replied to Connect@Abicomyou can use @formatdatetime function to find the day of given date. Let us know if it works.