Command to pull date

I have one file with below entry. There are multiple entries, but for sample I used just three lines.
my requirment is to create a script by which it will pull only those entries which modification time is greater than 2 weeks (or 15 days). if I run script today, it will compare date from today and pull entriies which modification time is greater than 2 weeks.
Is there any command or combination of commands which can be used for this activity?

Input

Login = user1
Modification Time = July 27, 2015 4:57:55 AM EDT
Login = user2
Modification Time = June 24, 2015 5:39:23 AM EDT
Login = user3
Modification Time = Aug 5, 2015 4:53:53 AM EDT

Required Output

Login = user1
Modification Time = July 27, 2015 4:57:55 AM EDT
Login = user2
Modification Time = June 24, 2015 5:39:23 AM EDT

Below is Output of date command in my server

> date
Mon Aug 17 03:46:31 EDT 2015

date command options/arguments vary depending version and OS
Of the OS and shell you use, you say nothing...

Thanks for your reply ..!!

here are details

$ uname -a
Linux ABC.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
$ echo $0
-bash

As date arithmetics are not that easily done, and my mawk doesn't support dates at all, I'll propose a shell script for you:

NOW=$(date +%s)
D15=$((86400*15))
while IFS="=" read A B; do [ "$A" == "Login " ] && LINE="$A=$B" || if ((NOW - $(date -d "$B" +%s) > D15)); then echo "$LINE"; echo "$A=$B"; fi; done <file3 
Login = user1
Modification Time = July 27, 2015 4:57:55 AM EDT
Login = user2
Modification Time = June 24, 2015 5:39:23 AM EDT

Thanks Rudic ..!
I tested and script worked ... :slight_smile: