Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai33
Partner - Creator
Partner - Creator

Extract Date Time from text Field

Hello All,

I've data in the following format:  /year=2019/month=10/day=02/hour=17/

And i would like to extract Date and Time from the above data:

Ex: 2019/10/02-17

 

Thanks

Sai

Labels (1)
1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

Try with

=right(subfield(Time,'/',2),4)&'/'&right(subfield(Time,'/',3),2)&'/'&right(subfield(Time,'/',4),2)&'-'&right(subfield(Time,'/',5),2)

View solution in original post

1 Reply
sergio0592
Specialist III
Specialist III

Hi,

Try with

=right(subfield(Time,'/',2),4)&'/'&right(subfield(Time,'/',3),2)&'/'&right(subfield(Time,'/',4),2)&'-'&right(subfield(Time,'/',5),2)