Can I please get any help finishing this code I did for my website. I'm using jquery and what this code does is its checking the recert date (expiry date) of an application first before a customer can re-apply again, so basically they can only re-apply within 4 weeks of their current application expiry date. 

e.g. if a person application expires Aug 31 2016 that means they can only re-apply from Aug 3 2016 to Aug 31 2016 with 4 weeks to be exact. An application last for 3 years.

I provided my code and its working but I don't know if this is the right conditions and all it does is just hide the apply button if expiry date is still not up.

```
$(document).ready(function(){

    var current = new Date();
    var expiry = new Date($("#mcs_nextrecertdate").val());

    if(current.getTime() > expiry.getTime()){
        $("#NextButton").show();
    }
    else {
        $("#NextButton").hide();
    }

```

EDIT: Im testing the codes I receive from the answers based on these dates first can re-apply with 27 august 2016 and the second is a date that can't re-apply yet 20 July 2019