Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I need an urgent help on the below issues.
I need to put current date in the below format in Salesforce. Below Date is in Unix Format.
YYYY-MM-DDTHH24:MIS.nnn+ZO:NE
For this conversion, we are using the below format in Talend but this is changing the time zone, means 13 May 3 AM CST is changing to 12 May 10 PM CST.
RUN_DATE = TalendDate.formatDate("yyyy-MM-dd'T'HH:mm:ss'.000Z'",TalendDate.getCurrentDate())
Kindly suggest how to correct it.
Thanks, I got that salesforce takes every date in UTC then converts accordingly.
@mani1304, you can use below way for example you need to get in UTC.
TalendDate.formatDateInUTC("yyyy-MM-dd HH:mm:ss", TalendDate.getCurrentDate() )
Thanks, I got that salesforce takes every date in UTC then converts accordingly.