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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
musketeers
Creator
Creator

Why Date function changing Time value

Hi, I have a date field in SQL database which has date ad time value. I need to display this field in Qlikview as DD-MM-YY HH:MM:SS format. I am applying below function:

DATE("Date_Field",'DD-MMM-YY HH:MM:SS') AS Date_Field_Test.

The end result I am getting is as below:

Date_FieldDate_Field_Test
1/27/2017 12:54:12 AM27-Jan-17 00:01:12
1/27/2017 12:56:11 AM 27-Jan-17 00:01:11

Please suggest what is going wrong here or Qlikview is working as expected.

How can I get the actual values of time what I have in my SQL database table after applying Date function in qlikview?

Thanks

Rajneesh

1 Solution

Accepted Solutions
surendraj
Specialist
Specialist

Try with

May be..

DATE("Date_Field",'DD-MMM-YY hh:mm:ss') AS Date_Field_Test.

View solution in original post

6 Replies
surendraj
Specialist
Specialist

Try with

May be..

DATE("Date_Field",'DD-MMM-YY hh:mm:ss') AS Date_Field_Test.

jonathandienst
Partner - Champion III
Partner - Champion III

Correct - uppercase M is month, lowercase m is minutes.

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

It should work:

Timestamp(num(Date_Field,'DD-MMM-YY hh:mm:ss'))  as Date_Field_Test.

Thanks

Sachin

sdmech81
Specialist
Specialist

MM ----is wrongly put in ur case.

Try above with time stamp ..I tested it..

Chanty4u
MVP
MVP

Try with

May be..

DATE((Date#(Date_Field,'DD-MMM-YY hh:mm:ss') ,'DD-MMM-YY hh:mm:ss') AS Date_Field_Test.

musketeers
Creator
Creator
Author

Thanks all for the help. I can see the correct output now.