Hi,

My file has date in "14-oct-2014" format. I want to compare this date with current date and print result if the difference is less than or equal to 7 days.

Example:

Say today is 10-oct-2014 and file contains 14-oct-2014. The difference between these days is 4. So the script show print the result 4 days.

Hi,
Please, What have you tired? Show some effort and others will point you in the right direction.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.