Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

date & time feild

hi,

i have feild with date & time  (08-01-2018 15:39:03) , i want to make only date.

i write "date(ontdate)" as date

the result is -  new feild "date"  with the date , but i can't chose one date for all the data.

if i click on 08-01-2018 i only get 1 row that , not all the rows that happend on 08-01-2018.

hope it's undestood.

thanks'

yarin.

1.png

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

i used the function

MakeDate(Year(ondate),Month(ondate),Day(ondate))

and it's working good.

thanks'

View solution in original post

3 Replies
prma7799
Master III
Master III

Have you tried this

Date(date#('08-01-2018','MM-DD-YYYY'))

or

Date(date#('08-01-2018','MM-DD-YYYY') , 'MM-DD-YYYY')

tamilarasu
Champion
Champion

Hi Yarin,

Try this.

Date#(Subfield(ONDATE,' ',1),'DD-MM-YYYY') as Date


Or


Date(Date#(Subfield(ONDATE,' ',1),'DD-MM-YYYY'),'DD-MM-YYYY')  as Date

Anonymous
Not applicable
Author

i used the function

MakeDate(Year(ondate),Month(ondate),Day(ondate))

and it's working good.

thanks'