J.P. Morgan interview question

How to make date field immutable?