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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to retrieve Date Pattern from schema in tJava/tJavaRow component?

Hello,

I found in other post, how to get Columns names and Types:
for (java.lang.reflect.Field field: row1.getClass().getDeclaredFields()) {
String columnName = field.getName().toString();
String type = field.getType().getSimpleName().toString();
}

But is there a way to retrieve also Date Pattern from schema?

Labels (2)
1 Reply
manodwhb
Champion II
Champion II

@izap ,check that will it be helpful.

DateFormat df = new SimpleDateFormat("dd/MM/yy HH:mm:ss");
Date dateobj = new Date();
System.out.println(df.format(dateobj));