Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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

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

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')