More simple how? So you don't need the split and piecing back together? If
so, then how about:

if
(compare(americanDate($('exsupplier_date').value),americanDate($('arrival_date').value))!=1)
return true;
else return false;

If you're looking for something different than this, you're gonna have to
better explain what you're wanting to achieve.

On 2/26/07, b3d70 <[EMAIL PROTECTED]> wrote:
>
>
> 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