Whats the easyiest way to check that a date is not in the past?
I want to check that my date is in this format "DD/MM/YYYY" and is not in the past.
Is there a easy way to do this with RegEx.
I was thinking of creating a new Date object and with the inputed value and then checking that new Date() is not create than it. However that will check from the exact second wont it, So how can I tructate it down?
TIA
Dale
I want to check that my date is in this format "DD/MM/YYYY" and is not in the past.
Is there a easy way to do this with RegEx.
I was thinking of creating a new Date object and with the inputed value and then checking that new Date() is not create than it. However that will check from the exact second wont it, So how can I tructate it down?
TIA
Dale
Comment