Pregunta de entrevista de J.P. Morgan

How to make date field immutable?