Advertisement
Advertisement
| 09.07.2008 at 01:13PM PDT, ID: 23710542 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: |
function checkDate( val )
{
euro = parseInt(document.getElementById(euroid).value) == 0; // true if euro dates
alert (val);
if ( val.length == 0 ) return true;
if ( ! validformat.test( val ) ) return false;
alert("mmm");
//Detailed check for valid date ranges
var temp = val.replace("-","/").split("/");
alert("temp");
alert(temp);
// the euro flag lets us pick month and day from right elements of the split:
var mnum = parseInt(temp[ euro ? 1 : 0]) - 1; // js months start at zero
var dnum = parseInt(temp[ euro ? 0 : 1]);
var dtest = new Date( parseInt(temp[2]), mnum, dnum );
alert("dtest");
alert(dtest);
alert("mnum");
alert(mnum);
alert("before get month");
alert(dtest.getMonth());
// if the month isn't the same, then day was too large for given month
// alert( dtest + "\n" + mnum + "\n" + dtest.getMonth() );
return ( mnum == dtest.getMonth() );
}
|