Hi, I am not very good at javascript but I think this is the way to go on what I am trying to do.

I have a text field that you can put a date into, but if the user has entered a date that is 130 days from today's date or if the date is less than today's date they would receive a message indicating they have set it out more than 130 days or less then today's today.

I know you would have to set a variable for the current date but not really sure how or what the correct syntax would be for > 130 days. Do the days have to be calculated by days, hours and minutes? Any assistance would be appreciated.