Hi,@ StewartBW. Welcome to Microsoft Q&A.
In VB, you could achieve this by using DateTimeOffset
to ensure that the correct time zone offset is used and then format the output string accordingly.
Dim now As DateTimeOffset = DateTimeOffset.Now
Dim formattedDate As String = now.ToString("ddd, dd MMM yyyy HH:mm:ss zzz")
' Replace the colon in the time zone offset with nothing
formattedDate = formattedDate.Replace(":", "")
Console.WriteLine(formattedDate)
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.