GitHub
Deluge
Time & Dates
formatForCRM

Format time From Deluge Time to CRM Time

Use Cases

You might need to format your date from a api source or CSV, and need to import into a ZOHO app.

Javascript

dateTime = now;
dateTime_DATE = dateTime.getPrefix(" ").toString("yyyy-MM-dd");
dateTime_TIME = dateTime.getSuffix(" ");
dateTime_FORMATTED = dateTime_DATE + "T" + dateTime_TIME;
 

Supported Formats

Please note to select this format in CRM 
FormatResult
dd-MMM-yy15-Aug-47
dd-MMM-yyyy15-Aug-1947
dd-MMMM-yy15-August-47
dd-MMMM-yyyy15-August-1947
MM-dd-yy08-15-47
yy-MM-dd47-08-15
dd-MM-yy15-08-47
dd-MM-yyyy15-08-1947
MM-dd-yyyy08-15-1947
yyyy-MM-dd1947-08-15
yy/MM/dd47/08/15
dd/MM/yy15/08/47
MM/dd/yy08/15/47
yyyy/MM/dd1947/08/15
MM/dd/yyyy08/15/1947
dd/MM/yyyy15/08/1947
dd MMM,yy15 Aug,47
MMM dd,yyAug 15,47
dd MMM,yyyy15 Aug,1947
MMM dd,yyyyAug 15,1947
dd MMMM,yy15 August,47
MMMM dd,yyAugust 15,47
dd MMMM,yyyy15 August,1947
MMMM dd,yyyyAugust 15,1947
E,MMMM dd,yyyyFri, August 15,1947
E,MMM dd,yyyyFri, Aug 15,1947
MMM dd yyAug 15 47
dd MMM yy15 Aug 47
MMM dd yyyyAug 15 1947
dd MMM yyyy15 Aug 1947
MMMM dd yyAugust 15 47
dd MMMM yy15 August 47
dd MMMM yyyy15 August 1947
MMMM dd yyyyAugust 15 1947
dd.MM.yy15.08.47
MM.dd.yy08.15.47
yy.MM.dd47.08.15
dd MM yyyy15 08 1947
dd.MM.yyyy15.08.1947
MM.dd.yyyy08.15.1947
yyyy.MM.dd1947.08.15