added method to sharedpreferences
added comment and small change to dateUtils