Framework EDI Reference. Methods and Properties
mailDate.SetUtcTime

Sets the date to Greenwich Mean Time (GMT) or Universal Coordinated Time (UTC).

Syntax:

Returns

Returns 1 if the operation is successful; otherwise the operation returns zero.

Example:

Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oSubjMsg As Fredi.mailMessage
Dim oDate As Fredi.mailDate

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument

' Load EDI document normally.
oMailDocument.Load App.Path & "\SampleMail.TXT"

' Get subject document.
Set oSubjMsg = oMailDocument.GetMessage

' Get the date.
Set oDate = oSubjMsg.GetHeaderTypeDate("Date")

' Set the GMT time.
oDate.SetUtcTime

oMailDocument.Save App.Path & "\Output.TXT"

MsgBox "Done"

Samples