Apr 19, 2004 #1 JBaileys Technical User Jun 23, 2003 244 US This seems extremely simple - but I am fumbling on a Monday morning... I have fields transyear, transmonth and transday. They are all numeric. If I want to display a date field how would I go about it. Select transyear +'/'+ transmonth +'/' + transday
This seems extremely simple - but I am fumbling on a Monday morning... I have fields transyear, transmonth and transday. They are all numeric. If I want to display a date field how would I go about it. Select transyear +'/'+ transmonth +'/' + transday
Apr 19, 2004 1 #2 TheJon Programmer Mar 11, 2002 71 GB Try this, it works for me in the UK. [tt] select convert(datetime, str(transyear) + '-' + str(transmonth) + '-' + str(transday)) [/tt] Code: |_ |_ _ | _ _ |, | )(/, |(_)| ) ' Upvote 0 Downvote
Try this, it works for me in the UK. [tt] select convert(datetime, str(transyear) + '-' + str(transmonth) + '-' + str(transday)) [/tt] Code: |_ |_ _ | _ _ |, | )(/, |(_)| ) '
Apr 19, 2004 #3 dreameR25 Programmer Aug 5, 2002 35 US select convert(datetime, '20040419', 112) -- using dat format YYYYMMDD Upvote 0 Downvote