Monday, October 17, 2005

How Use Date in Looping Using asp.net with c#

DateTime tmpsdate=Convert.ToDateTime(Request["sdate"]);
DateTime tmpedate=Convert.ToDateTime(Request["edate"]);
while(tmpedate.CompareTo(tmpsdate)!=-1)
{
Response.Write(tmpsdate.ToShortDateString());
tmpsdate=tmpsdate.AddDays(1);
}
Share:

1 comments:

Dainish said...

Thanks amit to share your idea.It is very helpfull for devloper.

Sitecore® Technology MVP 2019

Featured Post

Sitecore Error Troubleshooting: Sitecore Solr Connectivity Issue:: Part-1

Sitecore Error Troubleshooting: Sitecore Solr Connectivity Issue:: Part-1 How to verify Sitecore 9.1 (IaaS and Azure PaaS) + Solr (IaaS) C...

Total Pageviews

State Counder

Popular

About Me

My photo
Based in Bangalore, INDIA, Amit is a Sitecore MVP and MCC. He has an MCA from the U.P.T.U., INDIA and holds certifications including Sitecore and SharePoint 2007/2010. He is an contributor to Sitecore/MSDN communities and http://amitkumarmca04.blogspot.com/. Amit have experience in Sitecore, ASP.Net with C#, MVC, SharePoint, Classic ASP, VB,Macros,HTML,JavaScript,JSON,BootStrap and AngularJS.

Followers

Follow me on Twitter

Labels