J.P. Morgan Interview Question

How to make date field immutable?