You can also uses
string.Format
instead. That will works for nullable type like
DateTime?
and should works for objects too (provide that the object support the specified format).
Thus you will have something like:
string.Format("{0:dd/MM/yyyy}", Model);
For that kind of problem, that alternative is often the shortest alternative and I think it will also works when
null
is used for the model (which can happen for Create in simple cases when no initial model is required).