a simple interface that takes a user input date and changes the format