How to change date format?

I used the code below and it works fine:

TextRenderActor6->GetTextRender()->SetText(FText::FromString(FDateTime::UtcNow().ToString()));

But… How to change the date format? I used this but it doesn’t work well:

TextRenderActor7->GetTextRender()->SetText(FText::FromString(FDateTime::UtcNow().ToString(“yyyy/mm/dd hh:mm:ss”)));

I would be grateful for a tip…

You will replace that format string with this: “%Y-%m-%d %H:%M:%S”

The symbols are the ones referred at ISO-8601 but it will consider the symbol just after the % sign anything else will be part of the format added to the result like the - : and spaces.

It works great… Thanks.

TextRenderActor7->GetTextRender()->SetText(FText::FromString(FDateTime::UtcNow().ToString(TEXT("%Y-%m-%d %H:%M:%S"))));