[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Metadata.FormatUTC

FormatUTC Method

FormatUTC(DateTime, bool)

Formats a DateTime value for writing to metadata.

Declaration
public static string FormatUTC(DateTime dateTime, bool forceTimeZoneOffset)
Public Shared Function FormatUTC(dateTime As Date, forceTimeZoneOffset As Boolean) As String
Parameters
Type Name Description
DateTime dateTime

A DateTime value to format.

bool forceTimeZoneOffset

Indicates whether to force add time zone offset for a value even if it is 00:00. It is required in case of PDF/A.

Returns
Type Description
string

Formatted string.