1

In the form I've date field in the MM/DD/YYYY format it works well when the language is set to english when another locale selected it becomes unable to create record in the database due to the incorrect date format error. The date is manually selected from the user interface.

Is there any issues on this problem, may be someone already faced such a problem?

Sultan

sultan
  • 5,748
  • 14
  • 58
  • 102

1 Answers1

0

Before you insert your value into the database use "strftime".

How to print date in a regular format in Python?

Community
  • 1
  • 1
StefanNch
  • 2,469
  • 23
  • 30
  • I changed the date format in JQuery datepicker widget and it worked, `$( ".published" ).datepicker({ dateFormat: 'yy-mm-dd' });` – sultan Dec 05 '11 at 15:48