Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi All,

I am Fresher and Windows Application is new for me,
I have one month data,In My application in backend data loading is happning on 5th Day,8th Day, 20th Day e to or31st Day of the month,I have to store and fetch First Day of the Month and First Monday of the month,at UI level we have to find out on particular day how many Records are Pendding.
How i can store the whole month in Database or is anyother way pls suggest.


Thanks in Adv
Kunal
Posted
Updated 9-Jul-11 6:33am
v2

1 solution

You simply insert all the with the current datetime (C# DateTime.Now or SQL getDate()).

At the end of the month run your query.

select * from Data where created >= '1 day on month' and created <= 'last day of the month'

SQL
e.g select * from data where created >= '1 March 2011' and created <= '31 March 2011'
 
Share this answer
 

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