Convert text to date

Z Solvertech
Skočit na navigaci Skočit na vyhledávání
Toto je přeložená verze stránky TAS:Pokročilé/Pluginy/KPI/Převod textu na datum, překlad je hotový z 100 %.
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), '.', )))