How to populate a text field from date field in another format?