Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator III
Creator III

Date Format

Hi Team,

I have Start Date field like below:

Start Date
12-JAN-16
01-FEB-88
06-MAR-98
03-APR-17
02-FEB-01

I am converting Start Date to Date(Start Date,'DD/MM/YYYY').

After converting Start Date i am getting below wrong values:

Start Dtae
12-01-2016
01-02-2088
06-03-2098
03-04-2017
02-02-0001

I want start date like below:

12-01-2016
01-02-1988
06-03-1998
03-04-2017
02-02-2001

Thanks

Gireesh

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Use Date(Date#([Start Date], 'DD-MMM-YY'), 'DD/MM/YYYY')

This returns the correct year for me.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

7 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use Date(Date#([Start Date], 'DD-MMM-YY'), 'DD/MM/YYYY')

This returns the correct year for me.

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

Hi Jonathan,

Above expression not working

Sergey_Shuklin
Specialist
Specialist

Hi, Gireesh!

If you use it within the script - check your date format on the top of the script. May be date format from there have a conflict with your expression (it's have a little chance to be true, but still).

ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this

Date(Date#([Start Date], 'DD-MMM-YY'), 'DD-MM-YYYY')

1.jpg

Andrey

amit_saini
Master III
Master III

Hi,

See the attachment!

Date(Date#([Start Date], 'DD-MMM-YY'), 'DD/MM/YYYY') as Date

Thanks,

AS

gireesh1216
Creator III
Creator III
Author

SORRY Jonathan,

It's working fine.

jonathandienst
Partner - Champion III
Partner - Champion III

No problem. Glad to be able to help.     

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein