[This topic is pre-release documentation and
is subject to change in future releases. Blank topics are included
as placeholders.]
Assembly: Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)
Converts the string date format to
DateTime
Namespace:
Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
C# | Visual Basic | Visual C++ |
Parameters
- time
-
String
String data time format
- utc
-
Boolean
Return time as UTC if true, returns local time
Return Value
DateTimerepresenting the date/time formatExceptions
Exception | Condition |
---|---|
System . . :: . . FormatException | Time was null, empty or improperly formatted |