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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to perform validation on date field

Hello there! 

I have a Date field/Column in input and I want to apply validation operation like (Is_valid) to check whether the input date is in particular format (lets say dd-mm-yyyy) or not, if not I want to reject that record.

Please let me know/suggest me how can I perform this is_valid on date field

 

Thanks in advance

Labels (2)
3 Replies
TRF
Champion II
Champion II

Have a look to TalendDate.parseDate() method

Anonymous
Not applicable
Author

Actually am a beginner in talend and I tried the various date function's like TalendDate.formatDate, TalendDate.parseDate, TalendDate.isDate. 

but didn't get solution.

 

Could you please help me with an example or solution for below case.

My input filed 't_date' is in format 'dd-MM-yyyy', here I want to reject the records if it is not in the specified format else it should be proceed further.

 

By the way thanks for your reply!

TRF
Champion II
Champion II

Did you try:
TalendDate.isDate(row1.t_date, "dd-MM-yyyy")
This suppose t_date is a String.