I am using C #.
I know I can use
ToLongDateString()
to show something like:
Friday, February 27, 2009
What I like to do is show something like:
February 27, 2009
I looked around, but did not find what to use for display in this format.
Read the following: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
Try using:
thisDate1.ToString("MMMM dd, yyyy");
var s = yourDateTime.ToString("MMMM dd, yyyy");
Check this line in CustomTimeTime format.
Something like this should work:
new DateTime(2009, 02, 27).ToString("MMMM dd, yyyy") // February 27, 2009
Further reading
Update In C # 6 and later, you can also use string interpolation , for example:
$"{new DateTime(2009, 02, 27):MMMM dd, yyyy}" // February 27, 2009
Try using this: http://www.csharp-examples.net/string-format-datetime/ The examples are very readable and easy.
Source: https://habr.com/ru/post/954529/More articles:xcode 5, Mountain Lion: very slow performance - xcodeViewscoped JSF and CDI bean - jsfHow to iterate over properties of a prototype object - javascriptHow to set a boolean property in a single3d CGprogram shader? - unity3dhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/954528/how-to-update-icomoon-fonts-to-existing-icomoon-fonts&usg=ALkJrhjHfshA9oRRFbWqRGOY_jmtlwbnowIcomoon selection.json, add a new icon for an existing project - jsonHow to change the color of my text in UINavigationBar on iOS 7? - iosC # date and time format that includes date / month / year, not day - c #Do long redis lock operations? - redisCSS: footer overlapping, other crashes - htmlAll Articles