taking date,month and year as input and displaying it