This method is used to convert the value of the current DateTime object to its equivalent long date string representation.
Syntax: public string ToLongDateString ();
Return Value: This method returns a string that contains the long date string representation of the current DateTime object.
Below programs illustrate the use of DateTime.ToLongDateString() Method:
String representation of date is Saturday, 01 January 2011
String representation of date is Monday, 11 February 2019
- Difference between Method Overriding and Method Hiding in C#
- C# | IndexOfAny() Method
- C# | Remove() Method
- C# | IsNullOrEmpty() Method
- C# | Replace() Method
- C# | Insert() Method
- C# | CopyTo() Method
- C# | Math.Tan() Method
- C# | Math.Cos() Method
- C# | Clone() Method
- C# | Math.Sin() Method
- C# | String.Contains() Method
- C# | Math.Log() Method
- C# | Math.Abs() Method | Set - 1
- C# | Uri.FromHex() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.