Saving Date into database not working.
for clarification, I have the salesforce.com date format as "mm/dd/yy" and i changed it in appery properties, still no luck
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
for clarification, I have the salesforce.com date format as "mm/dd/yy" and i changed it in appery properties, still no luck
Hello Frank,
If " /\//gi " becomes red - it's ok.
Try to test it and check browser console for errors.
I did test it. I have date picker value mapped to request. It is still not working
"Text" works, for example: if I select input component - date, it will map it. But on mobile it is "jan" instead of "1" so I can't use it.
Frank,
Please double check you've followed all steps described in the first reply.
If the problem persists please share your application with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
I am having the same problem.
I am using
$("[name='getDate']").find('input').attr('id','inputgetDate');
var d = $("#inputgetDate").val();
return d;
My getDate datepicker is in the format mm/dd/yy.
How do I save to the database?
Hello.
Please try next code:
pre
code
value = value.replace(/
code
value = value.replace(/\//gi, "-") + " 00:00:00.000"
return value;
#47;/gi, "-") + " 00:00:00.000"
return value;
/code
/code/pre
No luck
Hi, I had the same issue and I changed my column to a string instead of a date in the database and it worked.
If you dont mind the column being a string instead of a date in the database I would change it to a string.
Hi. Yes I did that, the main reason I want to avoid this is for reporting purposes in my database.
The issue I run into is with mobile. Example: "2" = "feb"