SFDonovan
Junior Member
Posts: 8
Registered: 9/2/2008
Location: Ohio
Member Is Offline
|
| posted on 9/19/2008 at 02:50 PM |
|
|
calendar3.js Invalid month value
I have no dates entered for the fields from the database .. ie 0000-00-00 00:00:00 which is my default.
The form field has a return value from the table such as value="$PE_start_time" which currently is 0000-00-00 00:00:00
Why would you assume the months allowed range has to be 01-12?
Why can't I have these timestamps set to 0000-00-00 00:00:00
Could I edit calendar3.js
| Code: |
if (arr_date[1] < 1 || arr_date[1] > 12) return alert ("Invalid month value: '" + arr_date[1] + "'.nAllowed range is 01-12.");
dt_date.setMonth(arr_date[1] - 1);
|
|
|
|
SFDonovan
Junior Member
Posts: 8
Registered: 9/2/2008
Location: Ohio
Member Is Offline
|
| posted on 9/23/2008 at 04:14 PM |
|
|
Still looking for an answer here. Why could I not query the database and display the date using the form field even if the timestamp is 0000-00-00
00:00:00
Why does this script not allow 0000-00-00 00:00:00 to be used when pulling data from a record.
I am primarily looking to edit dates. I don't add dates when I initially create the record because most times I would not know the date until later.
So I want to query the record and bring up all pertinent data to edit. Two fields are the start and stop dates.
if I pull this data from the table it gives me this error:
if (arr_date[1] < 1 || arr_date[1] > 12) return alert ("Invalid month value: '" + arr_date[1] + "'.\nAllowed range is 01-12.");
|
|
|