
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Full Date Long Time ("F") Format Specifier in C#
The Full Date Long Time standard format specifier’s custom date and time format string is defined by the current DateTimeFormatInfo.FullDateTimePattern property.
The custom format string is −
dddd, dd MMMM yyyy HH:mm:ss
Example
using System; using System.Globalization; class Demo { static void Main() { DateTime myDate = new DateTime(2018, 8, 13, 9, 15, 0); Console.WriteLine(myDate.ToString("F", CultureInfo.CreateSpecificCulture("en-US"))); } }
Output
Monday, August 13, 2018 9:15:00 AM
Advertisements