format date for Teradata

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

format date for Teradata

Post by sal21 »

I need to format date in yyyy.mm.dd

i have used:

DATA_MAX = Format(RS1.Fields(0).Value, "YYYY.MM.DD") (this RS! is 25/11/2013)

but the DATA_MAX return 0.00.0000

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: format date for Teradata

Post by HansV »

Are you sure that the first field is a date/time field? The code itself looks OK.
S222.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans