Answers for "c# date attribute"

C#
2

c# display attribute date

[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
Posted by: Guest on October-23-2020
6

c# date

using System;
class Test {
   static void Main() {
      //print current datetime
      Console.WriteLine (DateTime.Now.ToString());
      //make a custom datetime
      DateTime dt = new DateTime(2018, 7, 24);
      Console.WriteLine (dt.ToString());
   }
}
Posted by: Guest on June-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language