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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sunil1989
Contributor
Contributor

how to convert string into date

Hi ,

Thanks in advance!!!!!!

i am new to qlik.

i am delevrey date field whose data type is string and the value in that field is '2017-03-08 20:08:05 UTC'.

how should i convert this into numeric and then convert into date with timestamp.

5 Replies
vvvvvvizard
Partner - Specialist
Partner - Specialist

=Date(Date#(Subfield( DeliveryDate,' ' ,1),'YYYY-MM-DD'),'YY-MMM-DD')

Where i have YY-MMM-DD , put any format which you want the output to be displayed in .


Where i have YY-MM-DD , thats the format to tekk qlikview to read in the data


Subfields is to remove  the data before the space


Anil_Babu_Samineni

What are you expecting to see by given? Can you provide more values

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
awhitfield
Partner - Champion
Partner - Champion

Hi there,

you say numeric, but what do you actually expect to see as the output?

Andy

vvvvvvizard
Partner - Specialist
Partner - Specialist

=Date(Date#(Subfield( DeliveryDate,'  ' ,1),'YYYY-MM-DD'),'YY-MMM-DD')


I missed a space before the 1

neha_shirsath
Specialist
Specialist

Hi,

Use below expression-

=Date(Date#(subfield('2017-03-08 20:08:05 UTC','UTC'),'YYYY-MM-DD hh:mm:ss'),'DD/MM/YYYY')

Thanks,

Neha