Forum Discussion
dsabsi
9 years agoAdvocate I
How to convert text (data type) to a date (data type)?
Hello guys, I need your help with converting a text column towards a data type. Should i add a column with a certain formula to achieve this? See below the error that I'm getting from thi...
- 9 years ago
Sure (I included some Dutch as well :-) ):
let Source = #table(type table[Verwachte_Start = text],{{"1499032800"},{"1498860000"},{"1493589600"},{"1491170400"}}), AddedUTCDateTime = Table.AddColumn(Source, "Verwachte_startdatum/tijd_UTC", each #datetimezone(1970,1,1,0,0,0,0,0) + #duration(0,0,0,Number.From([Verwachte_Start])), type datetimezone), AddedLocalDate = Table.AddColumn(AddedUTCDateTime, "Verwachte_startdatum_lokaal", each Date.From([#"Verwachte_startdatum/tijd_UTC"]), type date) in AddedLocalDate
blopez11
9 years agoSuper User
Can you give us a sample of what your text data looks like and what data type you are trying to convert it to? That would help in providing an answer
dsabsi
9 years agoAdvocate I
Hello guys,
My apologies for my late response.
Hereby the sample of the data that I got from my boss:
The format is text and I wish to change it to dates.
I hope you can help me, I'm really astonished by the amount of replies (many thanks!!!!)
Cheers,
DSabsi