close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

date not saved correctly on update recordset

Thread began 4/06/2020 3:28 am by Ashok | Last modified 4/09/2020 1:32 pm by Ray Borduin | 53 views | 7 replies |

Ashok

date not saved correctly on update recordset

Hello,

I have 2 date form fields. On opening the update recordset page, date is shown as 04-30-2020 (from 2020-04-30 in db). If I do not change the date and update recordset, date changes to 1970-01-01 in db. This case is with both date feilds.

Php file attached.

Help appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

Open your Update Record server behavior and go to the bindings tab and change the data type from text to date and that should fix the problem.

If you are displaying dates as m-d-y then you should be using m/d/y. PHP treats dashed date values as d-m-y.

Sign in to reply to this post
Did this help? Tips are appreciated...

Ashok

I recoded the page. Now I have issue with datepicker. If the date is say 2020-04-01 (y-m-d) and I click in the form field, datepicker popsup as April1 (1901) and not April2020.

Please refer screenshot.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the actual page you are working on. It looks like the datepicker is set to use m-d-Y not Y-m-d. That can be changed in the datepicker code if that is what you want to use. The code that has to be added in the javascript is:

dateFormat: "yy-mm-dd"

Sign in to reply to this post
Did this help? Tips are appreciated...

Ashok

Page attached.

Sign in to reply to this post

Ray BorduinWebAssist

This looks correct. Can I get a url to see the problem live?

Sign in to reply to this post
Did this help? Tips are appreciated...

Ashok

Sent in private. Ftp also required?

Sign in to reply to this post

Ray BorduinWebAssist

This page appears to be using a different style datepicker. I think it is using the bootstrap datepicker. Try using format instead of dateFormat in the creator function.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...