3
06/11/2024 7:10 pm
Début du sujet
How to print in C# the current date and time and print it out in console application?
1 Réponse
2
06/11/2024 7:10 pm
After you write Console.WriteLine and open the brackets - you can intuitively start typing Date and Visual Basics will give you some suggestions - including the method for finding out the current date and time...
Voici le code :
using System; class CurrentDateTime { static void Main() { Console.WriteLine(DateTime.Now); } }