Convert string to timestamp(6)

Certified Associate Developer

Hello everyone,

I have a field for created date of type varchar(255) and it has the value in string, for example: "20220505101000345600", what I did before was converting it to date before saving it to database with this expression: 

concat(
mid(
index(
ri!pulsarMessageValue,
"CREATION_TIMESTAMP",
null
),
5,
2
),
"/",
mid(
index(
ri!pulsarMessageValue,
"CREATION_TIMESTAMP",
null
),
7,
2
),
"/",
left(
index(
ri!pulsarMessageValue,
"CREATION_TIMESTAMP",
null
),
4
)
),

but now I am required to do store it as timestamp so then I can show it in the interface. My question is if is there any way to store it as datetime and then in the interface part I can use the formatted column or I need to convert it in the interface like this:

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data