Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Facing issue while updating date column in schema

Avatar

Level 2

Hi Team,

We are fetching data from api server through javascript, but while updating that data into schema its throwing error for date column.

We given date as datatype for date column.

We are getting date in below format,

"MEMBER_START_DT_CURR":"13\/05\/2017"

kindly find screenshot for the same, below are the sample code we written for updating into schema.

xtk.session.Write('<tempTable _operation="insert" member_start_dt_curr=" '+MEMBER_START_DT_CURR+' " xtkschema="apl:tempTable"/>');

date.PNG

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Ulkesh,

Try converting the MEMBER_START_DT_CURR to "2017-05-13 00:00:00.000Z" and see if it helps.

Regards,
Vipul

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi Ulkesh,

Try converting the MEMBER_START_DT_CURR to "2017-05-13 00:00:00.000Z" and see if it helps.

Regards,
Vipul