Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need some help finding the best way of designing the release dates table. I am creating a game information site using asp.net and SQL. I’ve experimented with table design that looks like this (ExactReleaseDate, RoughReleaseDate) , but I just can’t get it to work. Here are the different formats I plan on using. Also, one of the challenges is sorting by date that is nearest to the release date:

05-12-2013
Q1 - 2013
Mid-2009
Summer-2015
TBA

Do you have any ideas on how to deal with the different dates?
Posted
Comments
syed shanu 9-Dec-14 2:52am    
You can use nvarchar datatype to store your dates.
But if you need to search date vaules you can convert your nvarchar to date format.

Hope you might have fixed format startting like Summer,Q1,Mid,TBA and 05-12-2013 depend on the value you can search

Or you can have 3 column in SQL table one as nvarchar and 2 as Date.
before insert data in first column you can insert summer-2015 .You might be know Summer duration of start and end month and date.add the start and end date to other date field.
Same like this you can insert for q1 hope this if first quater might be from Jan 2015 to April 2015 so its you can insert this in 3 columns this method will be easy to do the search funciotn

1 solution

 
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