Kamala Veni

Kamala Veni

  • NA
  • 65
  • 21.3k

How to get date,day,time without using calendhar in asp.net

Apr 15 2016 6:33 AM
Hi...
am creating a designing page in dat without setting a asp.net Calendar
how will i get the days,date,time on  the page default?
 
 ex:
 
<table >
<tr>
<th><FeedBack</th>
</tr>
<tr>
<th>
<%
DateTime dt = DateTime.Now;
string dt1 = String.Format("{0:MMM dd yyyy h:mmtt}", dt);
Response.Write(dt1);
%>
</th>
</tr>
 
like dis i wanna get date in the table inside the <th></th>.
 bt its nt accepting,and i wanna 1 month date as lyk dis from tdy date.
 
ex: tdy April 15- may 15
 
 
 

Answers (1)