August 22, 2005 at 9:43 am
HOw can I dispaly 8/20/2005 11:29:00 AM as 8/20/2005 11:29 AM .
I need to discard seconds part from my date.
Thanks.
August 22, 2005 at 9:46 am
Application's job to do that.
August 22, 2005 at 12:00 pm
August 22, 2005 at 1:36 pm
I always did it by this painful process:
@newdate=convert(varchar(4),year(date))+'-'+convert(varchar(2),month(date))+'-'+convert(varchar(2),day(date))+' '+convert(varchar(2),hour(date))+':'+convert(varchar(2),minute(date))
I manually create dates this way to be sure that 'now' is =
00:00 <= now <= 11:59; otherwise you might not get something if today=today.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply