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: src/RequestInformation.cs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,10 @@ public Uri URI
124
124
boolboolean=>boolean.ToString().ToLower(),// pass in a lowercase string as the final url will be uppercase due to the way ToString() works for booleans
125
125
DateTimeOffsetdateTimeOffset=>dateTimeOffset.ToString("o"),// Default to ISO 8601 for datetimeoffsets in the url.
126
126
DateTimedateTime=>dateTime.ToString("o"),// Default to ISO 8601 for datetimes in the url.
127
+
#if NET6_0_OR_GREATER
128
+
DateOnly dateOnly =>dateOnly.ToString("yyyy-MM-dd"),// Default to ISO 8601 for dateonlys in the url.
129
+
TimeOnly timeOnly =>timeOnly.ToString(@"HH\:mm\:ss"),// Default to ISO 8601 for timeonlys in the url.
130
+
#endif
127
131
Guid guid => guid.ToString("D"),// Default of 32 digits separated by hyphens
128
132
Date date => date.ToString(),//Default to string format of the custom date object
129
133
Time time => time.ToString(),//Default to string format of the custom time object
0 commit comments