[DataMember()] public DateTime Timestamp {get; set;}
[DataMember()] public: property DateTime Timestamp { DateTime get(); void set ( DateTime value); }
'Declaration
<DataMemberAttribute()> Public Property Timestamp As Date
Exception | Description |
---|---|
System.ArgumentException | One of the arguments provided to a method is not valid. This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
If you are using VBA in Excel, beware that it reduces the precision of date/times from OLE Automation to seconds. In order to achieve milliseconds precision from VBA in Excel, use the TimestampDouble property instead.