How to check a Date

Talend Open Studio for ESB User Guide

EnrichVersion
6.4
EnrichProdName
Talend Open Studio for ESB
task
Design andĀ Development
EnrichPlatform
Talend Studio

It is easy to use the isDate routine, along with a tJava component to check if a date expression is in the format specified:

System.out.printIn(TalendDate.isDate("2010-02-09 00:00:00","yyyy-MM-dd 
HH:mm:ss"));

A boolean is returned in the Run view: