{"id":1685,"date":"2011-11-11T11:05:55","date_gmt":"2011-11-11T15:05:55","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=1685"},"modified":"2011-11-11T11:19:42","modified_gmt":"2011-11-11T15:19:42","slug":"month-day-and-year-code-behind-format","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2011\/11\/month-day-and-year-code-behind-format\/","title":{"rendered":"Month, day and year code behind format"},"content":{"rendered":"<pre>\r\nDay name and date format of Friday, 11\/11\/2011\r\n<code>\r\nDim strDayName As String\r\nDim curTime As New DateTime\r\n                        \r\ncurTime = DateTime.Now.ToShortDateString()\r\nstrDayName = curTime.DayOfWeek.ToString\r\n\r\nResponse.Write(strDayName & \", \" & DateTime.Today)\r\n<\/code>\r\nResult: Friday, 11\/11\/2011\r\n<\/pre>\n<pre>\r\nDay name and date format of Friday, 11\/11\/2011 using case funtion\r\n<code>\r\nDim iDay As String\r\nDim strDayName As String\r\niDay = DatePart(\"w\", DateTime.Now)\r\n\r\n   Select Case iDay\r\n          Case \"1\"\r\n              strDayName = \"Sunday\"\r\n          Case \"2\"\r\n              strDayName = \"Monday\"\r\n          Case \"3\"\r\n              strDayName = \"Tuesday\"\r\n          Case \"4\"\r\n              strDayName = \"Wednesday\"\r\n          Case \"5\"\r\n              strDayName = \"Thursday\"\r\n          Case \"6\"\r\n              strDayName = \"Friday\"\r\n          Case \"7\"\r\n              strDayName = \"Saturday\"\r\n   End Select\r\n\r\nResponse.Write(strDayName & \", \" & DateTime.Today)\r\n<\/code>\r\n<\/pre>\n<pre>\r\nMonth name, day and year format of November 11, 2011\r\n<code>\r\nResponse.Write(MonthName(DateTime.Now.Month) & \" \" & DateTime.Now.Day & \", \r\n                                                _\" & DateTime.Now.Year)\r\n<\/code>\r\nResult: November 11, 2011\r\n<\/pre>\n<p><strong>View related posts:<\/strong><br \/>\n&#8211; <a href=\"http:\/\/www.iowawebnet.com\/ein\/2011\/09\/vb-net-date-in-code-behind\/\">VB.NET \u2013 Date in code behind<\/a><br \/>\n&#8211; <a href=\"http:\/\/www.iowawebnet.com\/ein\/2011\/08\/vb-net-date-and-time-format\/\">VB.NET date and time format<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Day name and date format of Friday, 11\/11\/2011 Dim strDayName As String Dim curTime As New DateTime curTime = DateTime.Now.ToShortDateString() strDayName = curTime.DayOfWeek.ToString Response.Write(strDayName &#038; &#8220;, &#8221; &#038; DateTime.Today) Result: Friday, 11\/11\/2011 Day name and date format of Friday, 11\/11\/2011 using case funtion Dim iDay As String Dim strDayName As String iDay = DatePart(&#8220;w&#8221;, DateTime.Now) [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16,57],"tags":[19,58,60,59],"class_list":["post-1685","post","type-post","status-publish","format-standard","hentry","category-applications","category-net","category-date-and-time-format","tag-asp-net","tag-date","tag-format","tag-time"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1685"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=1685"}],"version-history":[{"count":16,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1685\/revisions"}],"predecessor-version":[{"id":1707,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/1685\/revisions\/1707"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=1685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=1685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}