-
Notifications
You must be signed in to change notification settings - Fork 0
easyextensions DateTimeExtensions
BigMakCode edited this page Aug 5, 2024
·
1 revision
DateTime extensions.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph EasyExtensions
EasyExtensions.DateTimeExtensions[[DateTimeExtensions]]
end
Returns | Name |
---|---|
DateTime |
DropMilliseconds (... )Remove milliseconds from DateTime . |
Nullable <DateTime > |
ToNullable (DateTime value)Convert datetime value to nullable datetime type. |
DateTime |
ToUniversalTimeWithoutOffset (DateTime value)Create new datetime with same values but DateTimeKind.Utc . |
DateTime extensions.
public static DateTime DropMilliseconds(DateTime value)
Type | Name | Description |
---|---|---|
DateTime |
value |
Remove milliseconds from DateTime .
DateTime without milliseconds.
public static DateTimeOffset DropMilliseconds(DateTimeOffset value)
Type | Name | Description |
---|---|---|
DateTimeOffset |
value |
Remove milliseconds from DateTime .
DateTime without milliseconds.
public static DateTime ToUniversalTimeWithoutOffset(DateTime value)
Type | Name | Description |
---|---|---|
DateTime |
value |
Create new datetime with same values but DateTimeKind.Utc .
New datetime.
public static Nullable<DateTime> ToNullable(DateTime value)
Type | Name | Description |
---|---|---|
DateTime |
value |
Convert datetime value to nullable datetime type.
Wrapped datetime value.
Generated with ModularDoc