Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
doespirito
Creator
Creator

date format problem

Hello,

here is a variable :

doespirito_0-1730214564250.png

here is the selected date :

doespirito_3-1730214958063.png

when I create a text box from this variable, the date seems to be correctly recognized  :

 

doespirito_1-1730214834297.png

doespirito_2-1730214878450.png

but actually this is what I get :

doespirito_4-1730215217026.png

with the date format it's not better :

doespirito_5-1730215338050.png

 

Is there anyone to help me?

Thank you

Arnault

 

 

Labels (3)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

0,000494 is 10/10/2024 (10 divided by 10 divided by 2024)

so you probably lack '' in the variable

try '$(variable)' instead of $(variable)

View solution in original post

4 Replies
mpc
Partner - Specialist
Partner - Specialist

Hello, 

Try Date(Date#('$(v_datedebut)','DD/MM,YYYY')) ?

Regards

From Next Decision and mpc with love
It helps, like it, It solves, mark it
diegozecchini
Creator
Creator

Hi!I suggest a checklist of things to verify:

-Ensure that GetFieldSelections(date1) retrieves the date in the expected format. Sometimes, formats can cause unintended transformations if not set consistently across the application.
-When creating the text box, ensure that the expression uses a date formatting function like Date() in Qlik. For example, you could try:

=Date($(v_datedébut), 'DD/MM/YYYY')
This might enforce the correct display format.

-Check your application's default date format settings. Sometimes, the date format in the environment may override specific formatting in expressions.

Sometimes, when variables are derived from expressions like GetFieldSelections, they might not directly behave as dates but as strings. Applying a Date() function explicitly can help force it to interpret as a date.

maxgro
MVP
MVP

0,000494 is 10/10/2024 (10 divided by 10 divided by 2024)

so you probably lack '' in the variable

try '$(variable)' instead of $(variable)

seanbruton
Luminary Alumni
Luminary Alumni

Superb!!!