added method that gets current date