Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to get date,day,time without using calendhar in asp.net
Kamala Veni
Apr 15 2016 6:33 AM
347
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How To Convert Page Into Image In ASP.NET
Shared location and sending a link instead outlook c#.net