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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ramcena306
Creator II
Creator II

Convert Text Field to Date Field?

A field 'Order_date' is in MM/DD/YYYY format. However this field is not being interpreted as a date field, and behaves as a normal text filed; due to which none of the date functions are working on this field.

How can i write an expression to convert the field to a date field ?

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Try One of this

Date(Date#(Order_date, 'MM/DD/YYYY'), 'MM/DD/YYYY')


Or


Date(Floor(Order_date), 'MM/DD/YYYY')


Or


Date(Order_date, 'MM/DD/YYYY')

View solution in original post

3 Replies
Anil_Babu_Samineni

Normal Date() and Date#() combination should return, Will you provide some data set rows?

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
Anonymous
Not applicable

DATE(Order_date, 'MM/DD/YYYY')

or

DATE(DATE#(Order_date, 'MM/DD/YYYY'), 'MM/DD/YYYY')

its_anandrjs
Champion III
Champion III

Try One of this

Date(Date#(Order_date, 'MM/DD/YYYY'), 'MM/DD/YYYY')


Or


Date(Floor(Order_date), 'MM/DD/YYYY')


Or


Date(Order_date, 'MM/DD/YYYY')