Output different in message box & log message

I don’t know if this is a bug or not but the text that is being displayed in message box is different from that of what is being displayed in log message.
The expression that I am using : DateTime.UtcNow.ToString(“yyyy-MM-ddTHH:mm:ssZ”)
maybe bug

@svinjamuri Type this in message box



How about using DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss")

I need date time to be in ISO 8601 format which is yyyy-mm-ddThh:mm:ssZ. I can obtain that in different ways but I need the reason for difference in output of log message and message box.

In the ouput window. Double click on the log ouput line and check the message attribute. Refer below screenshots:

It appears as if the ouput panel is formatting the ouput

If you simply type "2021-05-31T12:27:45Z" in log message activity then also the output will be same. refer below screenshot

Lol yeah. I don’t know why did they design like that. Can be confusing sometimes. Anyways…thank you @kumar.varun2

@svinjamuri Please mark it as a solution if you are satisfied with the answer

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.