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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
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'