Viewing 15 posts - 1 through 15 (of 17 total)
Would that work for a whole column of dates, or would I have to declare each on and convert them individually?
March 20, 2012 at 12:21 pm
Okay, so If I cannot convert from that format, is their a way to hide the time from being displayed?
March 20, 2012 at 12:12 pm
Thanks! I tried the Cast you mentioned above and it worked. Now the only thing is that it gives me the date in this format: 2010-12-03 00:00:00.000. All I need...
March 20, 2012 at 12:05 pm
Actually I am trying to pull data out of our database for a report, but because the dates I need are in a text field, I really cannot do much...
March 19, 2012 at 2:46 pm
The field is (text,null) and the data reads as such 3/19/2012.
When I try to convert it, I am given an error stating that text cannot be explicitly converted to...
March 19, 2012 at 2:25 pm
Ah,I see. Well, thanks again for all the help, I'll give it go and see what happens:-)
Joe
February 13, 2012 at 8:55 am
So, I would have to create a temporary table, and then run my query?
Sorry to be a pain, but SQL is still somewhat new to me.
February 13, 2012 at 8:51 am
I guess my question is instead of declaring a specific date, would I declare the format, such as 'mm/dd/yyyy' ?
Joe
February 13, 2012 at 8:34 am
Thanks for the replies, I really appreciate it.
One question, and I'm still new to using SQL,
declare @Date varchar(10) = '12/3/2012'
declare @Time varchar(20) = '10:33:31 PM'
select CAST(@Date + ' ' +...
February 13, 2012 at 8:12 am
Hi,
I agree, I wished who ever initially set these up did so in a different way, but I have to work with it regardless.
The date and time are in 2...
February 13, 2012 at 7:56 am
Hi, thanks for the quick response.
Here's what I have to work with in these tables,
Table_1
HeatNumberID (PK,varchar(50),not null)
Start_Time (text,null)
Start_Date (text,null)
...
February 13, 2012 at 7:41 am
OK, now I feel dumb, but that was it, Thank you for the help:-)
Joe
October 21, 2011 at 5:03 am
Wow, that was exactly what I was looking for. Thanks for all your help. That gave a different way to think about how I'm going to put my overall query...
October 20, 2011 at 12:03 pm
I will try CAST and see if that changes anything, thanks,
Joe
October 20, 2011 at 11:38 am
Viewing 15 posts - 1 through 15 (of 17 total)