Problems, need help? Have a tip or advice? Post it here.
12 posts Page 2 of 2
Priya,

The type 'datetime' editable region expects the date inputted (via code) within it to be in 'Y-m-d' format (e.g. 2019-02-01) and hence the error.

You need to first convert the date from CSV to the required format before trying to input it in the region.
For example, assuming the CSV date is named '_csv_date', if currently you are using this -
Code: Select all
<cms:db_persist
    att_date = _csv_date
/>

You need to do the following instead -
Code: Select all
<cms:db_persist
    att_date = "<cms:date _csv_date format='Y-m-d' />"
/>

Hope this helps.
@KK Sir

Thanks a lot. It works as a charm. Sends the date right to the datetime region in the format required.

Regards,
GenXCoders (Priya)
Image
where innovation meets technology
12 posts Page 2 of 2