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: 
Not applicable

How To Convert Date into DateShort

Hi,

I have a date column coming out of a SQL table  which has the values like '2012-01-29 00:00:00.000' but i want to bring back only the '20120129' out of it and use it as a field in Qlikview Document  .Can someone help me with how to get around this one?

Thanks,

Sujith.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Just change the display format: date(MyDate,'YYYYMMDD'). If the dates have a time part then you can use date(floor(MyDate),'YYYYMMDD') to cut of the time part.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Just change the display format: date(MyDate,'YYYYMMDD'). If the dates have a time part then you can use date(floor(MyDate),'YYYYMMDD') to cut of the time part.


talk is cheap, supply exceeds demand
rustyfishbones
Master II
Master II

try

date.png

Regards

Alan

Not applicable
Author

From the above question,if i want to bring the hour format only excluding the date.How can i do that?

Thanks,

Sujith.

rustyfishbones
Master II
Master II

You could try this

TIME.png