R
Robert Bouillon
I believe I may be missing something obvious, as I've found nothing in my
online searches regarding DateTime literals in C#.
I have a custom attribute that takes in a DateTime as a argument. Just to
recap: Since attributes are compiled to Meta-Data, the value must be a
literal, so I can't use DateTime.Parse.
Is there a way to specify a DateTime literal without passing in an
alternative type (Such as a String or UTC value?).
The string has globalization issues and the UTC is difficult to obtain and
nearly impossible to decipher with the naked eye. A C# DateTime literal
would be ideal.
Thanks
--ROBERT
online searches regarding DateTime literals in C#.
I have a custom attribute that takes in a DateTime as a argument. Just to
recap: Since attributes are compiled to Meta-Data, the value must be a
literal, so I can't use DateTime.Parse.
Is there a way to specify a DateTime literal without passing in an
alternative type (Such as a String or UTC value?).
The string has globalization issues and the UTC is difficult to obtain and
nearly impossible to decipher with the naked eye. A C# DateTime literal
would be ideal.
Thanks
--ROBERT