Go
Go
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat Go Downloads
email := chilkat.NewEmail()
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
dateTimeObj := email.GetDt()
if email.LastMethodSuccess() == false {
fmt.Println(email.LastErrorText())
email.DisposeEmail()
return
}
// ...
// ...
dateTimeObj.DisposeCkDateTime()
// ------------------------------------------------------------------------
// Do the equivalent using EmailDateStr.
dt := chilkat.NewCkDateTime()
dt.SetFromRfc822(email.EmailDateStr())
email.DisposeEmail()
dt.DisposeCkDateTime()