1
Answer

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

Kamala Veni

Kamala Veni

8y
364
1
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)