So I'm building an application where data is coming back from a database where the date could be in many different formats, ie '2008', '05/22/99', '8/20/2004'. And lets say, for example, a user wants to edit a date (2009) by clicking the "Edit" button. Well in the edit window it SHOULD show an input box with the year '2009' already present within the box. The problem is, however, datepicker sees 2009, doesn't recognize this date format as the default and instead plugs in today's date.
This is obviously a huge problem that will inevitably cause a crazy amount of confusion when somebody goes to edit the dates.
Is there a way to make this behavior stop? Am I missing something simple in my setup?
I'm sorry I don't have an example online and many thanks to anyone who has any ideas on how to overcome this.
Thanks,
Jeff