![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 04 May 2010 @ 20:19:10 GMT
There's no need for the UDF because a date can be cast to a timestamp and the time is set to 0
select cast(cast('20001015 ' as date format'yyyymmdd') as timestamp(6));
returns 2000-10-15 00:00:00.000000, Thanks, Bruce
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||