You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nservicebus/messaging/headers.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,13 @@ The headers of a message are similar to HTTP headers and contain metadata about
17
17
18
18
## Timestamp format
19
19
20
+
#if-version [8,)
21
+
For all timestamp message headers, the format is `yyyy-MM-dd HH:mm:ss:ffffff Z` where the time is UTC. The helper class `DateTimeOffsetHelper` supports converting from UTC to wire format and vice versa by using the `ToWireFormattedString()` and `ToDateTimeOffset()` methods.
22
+
#end-if
23
+
24
+
#if-version [,8)
20
25
For all timestamp message headers, the format is `yyyy-MM-dd HH:mm:ss:ffffff Z` where the time is UTC. The helper class `DateTimeExtensions` supports converting from UTC to wire format and vice versa by using the `ToWireFormattedString()` and `ToUtcDateTime()` methods.
26
+
#end-if
21
27
22
28
### ISO 8601 format
23
29
@@ -42,17 +48,30 @@ Use the following code to generate or read the NServiceBus custom timestamp form
42
48
```cs
43
49
conststringFormat="yyyy-MM-dd HH:mm:ss:ffffff Z"; // Not ISO 8601
0 commit comments