I assume you want to represent it without the milliseconds, because the date entity always saves the whole date time. Take a look at the formatDateTime command here: https://world.mendix.com/display/refguide6/Parse+and+format+date+function+calls You also need to check this: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Regards,
Ronald