![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 19 Apr 2012 @ 10:00:03 GMT
Hi, Please use the below syntax, it will give the exact o/p u want.
sel trim(cast(cast('070401' as date format 'yymmdd') as date format 'yyyy-mm-dd'))
Trim(BOTH FROM '070401')
2007-04-01
Thanks, Sushmita
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||