Noda Time
FromDateTime Method (dateTime)
NamespacesNodaTimeLocalDateTimeFromDateTime(DateTime)

[This is preliminary documentation and is subject to change.]

Converts a DateTime of any kind to a LocalDateTime in the ISO calendar. This does not perform any time zone conversions, so a DateTime with a Kind of Utc will still have the same day/hour/minute etc - it won't be converted into the local system time.
Declaration Syntax
C#Visual BasicVisual C++
public static LocalDateTime FromDateTime(
	DateTime dateTime
)
Public Shared Function FromDateTime ( _
	dateTime As DateTime _
) As LocalDateTime
public:
static LocalDateTime FromDateTime(
	DateTime dateTime
)
Parameters
dateTime (DateTime)
Value to convert into a Noda Time local date and time
Return Value
A new LocalDateTime with the same values as the specified DateTime.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)