I’m sure I’m doing something wrong here but I have this C# code (using Elements RTL on Island macOS console app):
namespace TestApp
{
static class Program
{
public static Int32 Main(string[] args)
{
string timestamp = DateTime.UtcNow.ToString();
Console.WriteLine("Timestamp: " + timestamp);
return 0;
}
}
}
The console outputs: Timestamp:
It would seem that the ToString()
method on the DateTime
object returned by UtcNow
is empty.