TimeHelpers.ToSmsTime Method (DateTime, Boolean)
Converts a DateTime object to a CIM-formatted string.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static string ToSmsTime(
this DateTime time,
bool ignoreTimeZone
)
public:
[ExtensionAttribute]
static String^ ToSmsTime(
DateTime time,
bool ignoreTimeZone
)
<ExtensionAttribute>
Public Shared Function ToSmsTime (
time As Date,
ignoreTimeZone As Boolean
) As String
Parameters
time
Type: System.DateTimeThe time to convert.
ignoreTimeZone
Type: System.BooleanTrue to ignore time zone.
Return Value
Type: System.String
See Also
ToSmsTime Overload
TimeHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top