Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Experts!

I am using SQL Server 2005 & C# Windows application. I want to know that How to calculate previous month data using dateTimepicker in C# Windows Application and SQL Server 2005?

Please Help Me..

Advance Thanks and lot

sreeni.
Posted
Comments
[no name] 29-Oct-14 4:22am    
what is the problem here ? How to calculate previous month data using dateTimepicker ?? Means what you want to select some date and pass it as a parameter.. Can you elaborate whats the issue
sreenivashan 30-Oct-14 2:52am    
I am generated the Crystal Report using dataset for month wise Rpt., And I put two dateTimepiker for from To date. When I am give current month 1st date to Last date Rpt successfully come. But I need previous month data aslo calculate like closing balance comes to as opening balance in current month. simply I want calculate previous month closing balance show in to CRpt using Dataset and dateTimepicker.
ZurdoDev 29-Oct-14 7:59am    
You need to explain where you are stuck.
sreenivashan 30-Oct-14 2:53am    
I am generated the Crystal Report using dataset for month wise Rpt., And I put two dateTimepiker for from To date. When I am give current month 1st date to Last date Rpt successfully come. But I need previous month data aslo calculate like closing balance comes to as opening balance in current month. simply I want calculate previous month closing balance show in to CRpt using Dataset and dateTimepicker.
ZurdoDev 30-Oct-14 7:38am    
Then figure the closing balance in your SQL using a subquery.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900