getting the date through