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: 
collinsjames
Partner - Contributor
Partner - Contributor

date format

today()-(date(date#({<Ref_Patient_RD_US.birth_dt),'mm/dd/yyyy'),'dd/mm/yyyy'='11/15/1924'>})

 

 

am getting a syntax error,in above expression,how to resolve this.

3 Replies
Shubham_Deshmukh
Specialist
Specialist

What you want to do here?
collinsjames
Partner - Contributor
Partner - Contributor
Author

actually I want to calculate the age ,

so I am subtracting today date(dd/mm/yyyy) and my birthdate field(mm/dd/yyyy) to get the age,

Shubham_Deshmukh
Specialist
Specialist

Use Age() function,

=Age(today(),date(date#(myBirthDate,'MM/DD/YYYY'),'dd/MM/YYYY'))

Regards,

Shubham D