namespace Examples{ public class DatetimeExampleClass { [STAThread] static void Main(string[]args) { WriteLine(DateTime.Now.ToLongDateString()); } }}
Just to expand Webmonsta's post above:
To put it it a variable, you would do the following:
namespace Examples{ public class DatetimeExampleClass { [STAThread] static void Main(string[]args) { DateTime date = DateTime.Now; } }}