Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
emteam162
Creator
Creator

Number Presentation

Hi,

I have created a chart Dynamic and i have on field format date "YYYY-MM-DD" and i want to have this format "DD/MM/YYYY"

there is a way to do that knowing i remove and i add the field to chart dynamic

i try this Settings ==> Document Prop ==>Number ==> Number Format Settings ==> Date"DD/MM/YYYY"

but doesn't work ?

i use QV 11 SR2

Many thanks for your help

Best Regards,

Emteam

11 Replies
sushil353
Master II
Master II

use date function

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

HTH

Sushil

Not applicable

date(date#(fieldname,'YYYY-MM-DD'),'DD/MM/YYYY')

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

1. Try this one.

Ex: Date(DateFieldName,'DD/MM/YYYY')

2. if you have string format use this one. This syntex convert string format to Date format

Ex: Date(Date#(DateFieldName,'DD-MM-YYYY'),'DD/MM/YYYY')

er_mohit
Master II
Master II

in load script where you use your datefield

try this in that load script

date(date#(datefield,'YYYY-MM-DD'),'DD/MM/YYYY') AS DateField

the date# function gives you same ormat and Date function gives you that format which you want

Hope it helps

Gysbert_Wassenaar

The document properties set the default date format. If the value already has a format then it will keep that format. You can give the date the correct format in the script. Maybe you can specify the wanted format on the Number tab of the chart. If not you'll have to use the date() function to change the format: date(MyDateField, 'DD/MM/YYYY')


talk is cheap, supply exceeds demand
emteam162
Creator
Creator
Author

Hi All,

Thanks for your answer

but in my case i have 40 field type date their format "YYYY-MM-DD"

Many thanks

Best Regards,

Emteam

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Send sample data. What types of date you have

emteam162
Creator
Creator
Author

Hi Gysbert Wassenaar,

Thanks for your answer

but in my case i have 40 field type date their format "YYYY-MM-DD"

Many thanks

Best Regards,

Emteam

nizamsha
Specialist II
Specialist II

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

OR

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