How can I capture a date value and display it as text?