Convert text to date

Z Solvertech
Verze z 18. 8. 2022, 09:37, kterou vytvořil Jana.safferova (diskuse | příspěvky) (založena nová stránka s textem „Tasha sends all dynamic columns as text when importing data into KPI. One dynamic column (in the example, the [JobDynamicField19] column) stores the date and time in the format d.M.yyyy H:mm:ss. You need to get the correct date from the dynamic field.“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Skočit na navigaci Skočit na vyhledávání
Jiné jazyky:

Tasha sends all dynamic columns as text when importing data into KPI. One dynamic column (in the example, the [JobDynamicField19] column) stores the date and time in the format d.M.yyyy H:mm:ss. You need to get the correct date from the dynamic field.

Solution

Add CalculatedField with the following text:

1 MakeDateTime(ToInt(Replace(Replace(Remove(Reverse(Remove(Reverse([JobDynamicField19]), 0, 8)), 0, 6), ' ', ), '.', )), ToInt(Replace(Replace(Remove(Remove([JobDynamicField19], 0, 2), 4), '.', ), ' ', )), ToInt(Replace(Remove([JobDynamicField19], 2), '.', )))