Added method to get date