I have a model in which I can not set [DefaultValue] for DateTime, the object is used to generate a list of users from the powershella script. When I do not have default value and powershell return null this causes an error. I would like to make the date set to 01.01.1990 00:00:00 in the case of null
public class user
{
[DefaultValue("")]
public string Name { get; set; }
//[DefaultValue( )]
public DateTime PasswordLastSet { get; set; }
}