date model with 2-way java conversion