Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

17. Datum und Zeit > Datum und Uhrzeit abfragen

Datum und Uhrzeit abfragen

Um das aktuelle Datum und die aktuelle Uhrzeit zu ermitteln, brauchen Sie lediglich den Wert der statischen Eigenschaft Now abzufragen:

DateTime zeit = DateTime::Now;
Console::WriteLine(zeit);           // 05.04.2010 15:37:04

Wenn Sie nur an dem Datum interessiert sind, können Sie stattdessen die Eigenschaft Today abfragen:

DateTime tag = DateTime::Today;
Console::WriteLine(tag);           // 05.04.2010 00:00:00


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint