• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Date in SQL String has Wrong Syntax

 
Ranch Hand
Posts: 2211
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using the jquery datepicker to drive a request to gather data using a remote data sql call.

I get an error on some computers that the date syntax is wrong(03-17-2017).

I the javascript of my application index file I have this code:



I do not understand how the date format is changing on its way to the remote call code.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Steve,
Is 03-17-2017 the desired syntax or what is getting passed to the database? Also, is jQuery the last time your application has control of the data? Or does it go to something on your server first?
 
Steve Dyke
Ranch Hand
Posts: 2211
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Steve,
Is 03-17-2017 the desired syntax or what is getting passed to the database? Also, is jQuery the last time your application has control of the data? Or does it go to something on your server first?



My desired format is 03/17/2017.

I did find another javascript code that was formatting datepicker with dash style dates. I think this is the reason I am having issues.

Thanks for your help.
reply
    Bookmark Topic Watch Topic
  • New Topic