Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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
Creator

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
Creator

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
Creator

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