Skip Navigation LinksHome > Categories > Code from a Category

How to get the Start and End date of Previous month



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 1615
Add Date: 11/19/2011
Here is the simple code for getting Start date and End date of Previous Month.
Basically we have calendar control with current month only.. We will do this with help of Dot NET 2.0 using language C# and VB.NET. C# Code:


VB.NET Code


You can directly pass this code on your button click event check the Result by using Response.Write

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.