text: // <Snippet6>
  using namespace System;
  
  void main()
  {
      Console::Clear();
  
      DateTime dat = DateTime::Now;
  
      Console::WriteLine("\nToday is {0:d} at {0:T}.", dat);
      Console::Write("\nPress any key to continue... ");
      Console::ReadLine();
  }
  // The example displays output like the following:
  //     Today is 10/26/2015 at 12:22:22 PM.
  //     
  //     Press any key to continue...
  
  // </Snippet6>
  
  