integer to date in user model