0
I have a code below but would like to display the date/time in a modal message box.
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
Console.WriteLine("agora são: "+DateTime.Now.ToString());
var hstr = DateTime.Now.Minute;
if (hstr > (30)) {
Console.WriteLine("agora são: "+DateTime.Now.Hour+1);
}
else
{
Console.WriteLine(DateTime.Now.Hour+":00");
Console.WriteLine(": "+DateTime.Now.Minute);
}
}
}
If a Console Application is outside the scope of the project type in this case it is recommended to use a WPF or Winforms project.
– davidterra
@davidterra Not even. A Winforms or WPF project is nothing more than a "console application" that references some DLL’s.
– Jéf Bueno