aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

C# - Get (Find) Name of the Day From Date in Asp.Net

Aug 6, 2014

Here I will explain
how to find or get name of the day in a week in using c#, when user will input the date.
In previous articles I explained SQL Query to find first & last day of month, SQL Query to get month wise & year wise data, SQL Query exclude weekends to get data, SQL Server Get only month & year from date and many articles relating to, c#,, SQL server. Now I will explain how to find or get name of the day in a week in using c#, when user will input the date.

First create one new web application and open your Default.aspx code behind file and Write the following code in Page_Load() method

C# Code

using System;

public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
DateTime dateValue = new DateTime(2014, 6, 12);

Partial Class vbcode
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim dateValue As New DateTime(2014, 6, 12)
End Sub
End Class
Once we run above code we will get output like as shown below

Try it yours and enjoy... :)

Arkadeep De
Facebook | LinkedIn | Twitter

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Anonymous said...


Give your Valuable Comments

Other Related Posts

© 2010-2012 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.