added check for date
added rake tasks for date and link