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: 
Kartik2
Partner - Creator
Partner - Creator

Convert date from 01/01/2023 to 1 Jan 2023

How can i convert date format from 01/01/2023 to 1 Jan 2023 ?

Labels (3)
2 Solutions

Accepted Solutions
LRuCelver
Partner - Creator III
Partner - Creator III

As @PhanThanhSon has pointed out, you can use the Date() function to change the way a date is formatted. In your case this expression should work both in the script and the frontend:

Date(DateFieldWithOldFormat, 'D MMM YYYY') as DateFieldWithNewFormat

 

View solution in original post

PhanThanhSon
Creator II
Creator II

Hi,

you can set it in the backend like this:

PhanThanhSon_3-1709885949587.png

 

 

And in the frontend you can try this, 

PhanThanhSon_2-1709885901670.png

 

Best regards Son

View solution in original post

4 Replies
PhanThanhSon
Creator II
Creator II

Hi,

Try that out; the abbreviation for the month depends on what you have defined in the Load Script.

date('08.01.2024', 'dd MMM YYYY')

PhanThanhSon_0-1709883012176.png

Best regards Son

Kartik2
Partner - Creator
Partner - Creator
Author

Isn't there any function or some expression?

LRuCelver
Partner - Creator III
Partner - Creator III

As @PhanThanhSon has pointed out, you can use the Date() function to change the way a date is formatted. In your case this expression should work both in the script and the frontend:

Date(DateFieldWithOldFormat, 'D MMM YYYY') as DateFieldWithNewFormat

 

PhanThanhSon
Creator II
Creator II

Hi,

you can set it in the backend like this:

PhanThanhSon_3-1709885949587.png

 

 

And in the frontend you can try this, 

PhanThanhSon_2-1709885901670.png

 

Best regards Son