Fixed date field in create-profile to be compatible with  Windows 7