Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: calendar3.js Invalid month value
SFDonovan
Junior Member

Posts: 8
Registered: 9/2/2008
Location: Ohio
Member Is Offline
posted on 9/19/2008 at 02:50 PM Reply With Quote
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);

View User's Profile View All Posts By User U2U Member
SFDonovan
Junior Member

Posts: 8
Registered: 9/2/2008
Location: Ohio
Member Is Offline
posted on 9/23/2008 at 04:14 PM Reply With Quote

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.");
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004