Click here to Skip to main content
15,891,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Want to enter data in database table in week manner i.e. w1=(3 july 2011 to 9 july 2011) w2=(10 july 2011 to 16 july 2011) and so on... then how to do?
Posted
Updated 7-Jul-11 18:43pm
v2

You can use the sql function DatePart(week,@date) to return the week number
 
Share this answer
 
Hi,
Please use the varchar datatype instead of Datetime in database.
 
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