Page 6 of 6

DatePicker date will not add to a database. How do I format datepicker date to make the DB happy?

Posted: Fri Dec 26, 2014 3:41 pm
by Ellen Schlechter

I want to get rid of the time and rearrange the date to a mm-dd-yyyy format. I thought the code below would work but I need something to replace "value" and I figured it would be a variable that points to the Date column in the database.

var yyyymmdd = value.split(" ")[0].split("-");
return yyyymmdd[1] + "-" + yyyymmdd[2] + "-" +yyyymmdd[0];


DatePicker date will not add to a database. How do I format datepicker date to make the DB happy?

Posted: Sun Dec 28, 2014 10:31 pm
by Yurii Orishchuk

Hi Ellen,

The code you have pointed above - correct for "link" in mapping. "value" there is a value from the link. So if you make link from Date type response field to component - this value will process in that way.

Regards.


DatePicker date will not add to a database. How do I format datepicker date to make the DB happy?

Posted: Mon Dec 29, 2014 12:22 am
by Ellen Schlechter

Thanks