Hi ,
from my souce I am getting date like '2010-04-16-16.08.02.945000'
I want to convert it into the yyyy-mm-dd format
is there any function available to do this?
My source is a csv file.
date conversion funtion
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 103
- Joined: Fri Jan 18, 2008 12:55 am
- Location: chennai
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
What is your source ? Is it a sequential file or table ?
If sequential file, you can define it as Varchar and extract as
For table, search from TimeStampToString function
If sequential file, you can define it as Varchar and extract as
Code: Select all
yourStringDate[1,10]