Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
dineshraj
Partner - Creator
Partner - Creator

Problem with Date

Hi Experts

I have stuck in a problem with date. My Date Field is 10-05-17 which is 10-May-2017.But Qlik take it as 17-05-2010(17-May-2010).



How to resolve this issue?

Immediate reply Appreciated

Thanks in Advance

Dineshraj

1 Solution

Accepted Solutions
dineshraj
Partner - Creator
Partner - Creator
Author

Hi all,

I have found the solution.Here is  the trick.

Date(Date#(text(Date([Date Field],'DD-MM-YY')),'YY-MM-DD')).

Thanks for you support

View solution in original post

7 Replies
kamal_sanguri
Specialist
Specialist

Hi,

Please find attached.

I have formatted date in 3 different format to show how it can be formatted.

kamal_sanguri
Specialist
Specialist

The same method can be used at front end.

Anil_Babu_Samineni

I never come across this issue past my experience. Can you provide more inputs related the same

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
dineshraj
Partner - Creator
Partner - Creator
Author

Hi Anil,

Actually there is problem with my data. In excel sheet they use the wrong format.

Format should be (dd-mm-yy) but it is (yy-mm-dd).

Is data format can be changed by Qlik?

jonathandienst
Partner - Champion III
Partner - Champion III

You can convert dates with a specific format from strings to numeric date values in your load script like this:

Date(Date#([My Date Field], 'dd-MM-yyyy')) as [My Date Field]

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
dineshraj
Partner - Creator
Partner - Creator
Author

Hi all,

I have found the solution.Here is  the trick.

Date(Date#(text(Date([Date Field],'DD-MM-YY')),'YY-MM-DD')).

Thanks for you support

Anil_Babu_Samineni

Yes, By help of only Date and Date#

Date(DAte#(FieldName, 'YY-MM-DD'), 'DD-MM-YY')


Note: Seems, You found answer. You can mark your answer as correct

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