compare getDate() and getLastModified() of URLConnection class
posted 13 years ago
hi my robot is tracking an html page containing certain links to several text files. whenever it finds a text file added on the current date it fires a mail. however, to prevent it from continuously mailing, i have put in a check to get the lastmodified() of the txt file. however, the lastmodified returned to me is some dec31, 1969 field and hence the program takes it that the object is old. kindly help me out...its really urgent. i am attchaing the code below as well.