Connecting Tech Pros Worldwide Forums | Help | Site Map

Current day

Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#1: Jun 24 '09
Hi
i would like to retreive data from a sql database only for the day its viewed on. Like now i would like all data to be displayed for today,when tomorrow comes, i would like to retreive all data for that day then. Not in a 24 hour period though



code green's Avatar
Expert
 
Join Date: Mar 2007
Location: England
Posts: 1,079
#2: Jun 24 '09

re: Current day


Why not use a date field entry ans simply match the date?
Sl1ver's Avatar
Member
 
Join Date: Mar 2009
Location: Cape Town, South Africa
Posts: 102
#3: Jun 24 '09

re: Current day


dit figure it out <= convert(datetime,convert(varchar(12),getdate())). Thanx for the help tho
Reply