Hi all,

I have this simple date comparison function,

function checkdate()
{ a = $('exsupplier_date').value.split('/');  //its a dd/mm/yyyy
  b = $('arrival_date').value.split('/');        //its a dd/mm/yyyy
  if
( compare(isoDate(a[2]+'-'+a[1]+'-'+a[0]),isoDate(b[2]+'-'+b[1]+'-'+b[0])) !
= 1 )
  { return true; } else { return false; };
}

actually how to make this more simple ?

thank you
bedjo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to