In C#, we can easily find the current date and time using the DateTime class in the System namespace.
main.cs105 chars3 lines
The output of this code will give you the current date and time in the following format:
main.cs44 chars2 lines
gistlibby LogSnag