frank6683668
Posts: 0
Joined: Sat Feb 22, 2014 2:36 am

Saving Date into database not working.

Maybe I will just live with it for now

teneika
Posts: 0
Joined: Wed Mar 05, 2014 7:53 pm

Saving Date into database not working.

I had the same issue. I am living with it for now as well.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Saving Date into database not working.

Hi- The solution is in the first post of this topic. Please follow it through.

Note:
This is a correct code:
precode
value = value.replace(/\/code/code/gi, "-") + " 00:00:00.000&quot
return value;/code
/pre

Milton Davis
Posts: 0
Joined: Tue Mar 04, 2014 5:12 am

Saving Date into database not working.

I switched it to a string. That will work for now, thanks for the help.

frank6683668
Posts: 0
Joined: Sat Feb 22, 2014 2:36 am

Saving Date into database not working.

how'd u do that

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Saving Date into database not working.

Hello,

Please add this code to the component mapping datepicker-dateField in DB

code
d = new Date(value);
return d.toISOString().replace("T"," ").replace("Z","");
/code

frank6683668
Posts: 0
Joined: Sat Feb 22, 2014 2:36 am

Saving Date into database not working.

not working, this is for salesforce.com date field.

teneika
Posts: 0
Joined: Wed Mar 05, 2014 7:53 pm

Saving Date into database not working.

No problem Milton

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Saving Date into database not working.

Dear Frank,

It should work correctly.

Please share your application with us (tell us the name of app) with steps that we should do for reproduce the problem.

Regards.

Return to “Issues”