Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

String to date conversion 'dd.mm.yyyy hh:mm:ss'

$
0
0

Hi community,

 

I am new to alteryx and facing since two days the challenge of formating a German time format from a csv-file to a date format.

 

Source format of the field [MyDate]: 'dd.mm.yyyy hh:mm:ss' 

Some entries in [MyDate] have a short format: 'dd.mm.yyyy'

 

I have tried following formula: DateTimeParse(Left([MyDate],10), "DD%.MM%.YYYY%")

 

and got the error:

"ConvError: Formula (6): DATETIMEPARSE: Cannot convert "01.09.2017" to a date/time with format "DD%.MM%.YYYY%": Expected separator 'DD%.MM%.YYYY%', got: '01.09.2017'"

 

Any ideas how I can solve this? Step by step explanation highly appreciated J

Thanks


Viewing all articles
Browse latest Browse all 4999

Trending Articles