I have a scenario on a web page that compares 2 date fields. When dates are entered their cannot be a difference of more than 365 days. I know VB.Net has the DateDiff() function. I'm pretty new to using Javascript. I've done some searching and couldn't find a DateDiff() function for JS. Was wondering if their is anything like the DateDiff() or does anyone have a homegrown function that will return the difference in dates written in Javascript?

Thanks,