hi:
Is there a function to format the datetime value to the following
format 2005-09-29T17:57:03.000 0000+08:00 ?
currently i'm using a hard way
Dim result As String
Dim offset As Long
result =
Format(value,Da teTimeFormatInf o.CurrentInfo.S ortableDateTime Pattern)
offset = TimeZone.Curren tTimeZone.GetUt cOffset(value). Ticks
result &= CStr(IIf(offset < 0, "-", "+")) & _
Format(New DateTime(offset ), "hh:mm")
Thanks
JCVoon
Is there a function to format the datetime value to the following
format 2005-09-29T17:57:03.000 0000+08:00 ?
currently i'm using a hard way
Dim result As String
Dim offset As Long
result =
Format(value,Da teTimeFormatInf o.CurrentInfo.S ortableDateTime Pattern)
offset = TimeZone.Curren tTimeZone.GetUt cOffset(value). Ticks
result &= CStr(IIf(offset < 0, "-", "+")) & _
Format(New DateTime(offset ), "hh:mm")
Thanks
JCVoon
Comment