Ads 468x60px

Monday, October 15, 2012

how to sow date and time on a page using c#

In this's web programming tutorial we will learn that how we can show simple date and time on our web page in using c#. just copy and paste the below code.
 if (!Page.IsPostBack)
            lbl_date.Text = DateTime.Now.ToLongDateString();
            TxtDateTo.Text = DateTime.Today.ToString("MM/dd/yyyy");

No comments:

Post a Comment