Question7Replies343Views venkysikhakolli Member since 2014 2 posts Optum Posted: May 8, 2018Last activity: May 11, 2018 Closed Exceptions when i use currentdate functionHi,Can some one guide me why i am getting the exceptions when i use @DateTime.CurrentDate("yyyyMMDDThhmmss","CST") function. How to resolve this, could you please share your thoughts on this. 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: 2 years agoSusanLiu_GCS PEGA replied to venkysikhakolliCan you use of "yyyyMMdd" format? Posted: 2 years agoSusanLiu_GCS PEGA replied to venkysikhakolliPlease check below pdn link: https://pdn.pega.com/support-articles/currentdate-function-ignoring-time-zone Posted: 2 years agovenkysikhakolli Optum replied to SusanLiu_GCSI have tried with the suggested pdn approaches but no luck, could you please give me some approach. Posted: 2 years agoDurga_Bhanuja PEGA replied to venkysikhakolliHello , Let us know what exception you are getting. Did you get a chance to try which is suggested in the shared PDN article? Thanks , Durga Posted: 2 years agovenkysikhakolli Optum replied to Durga_BhanujaHi Durga, I have used @CurrentDate(@CurrentDateTime(), "CST") this function, it is throwing the below exception. Could you please let me know what can i do on this. 2018-05-08 08:44:06,686 [ WebContainer : 8] [TABTHREAD1] [ ] [ MIIM:02.08.01] ( pub.util.PRDateFormat) ERROR miim.uhc.com|10.175.224.120 kcastro2 - Cannot create format "20180508T134406.686 GMT", default format is used java.lang.IllegalArgumentException: Illegal pattern character 'T' Posted: 2 years agoArun_Mahanty PEGA replied to venkysikhakolliYou can use of below java steps to get the current timestamp DateTimeUtils dtu = ThreadContainer.get().getDateTimeUtils(); return dtu.getCurrentTimeStamp(); Thanks, Arun Posted: 2 years agovenkysikhakolli Optum replied to Arun_MahantyIs there any other way with out using the java step.As Pega doesn't recommend java much.