Here you can find the source of formatDate(String fieldName)
@Deprecated public static String formatDate(String fieldName)
//package com.java2s; //License from project: Apache License public class Main { @Deprecated public static String formatDate(String fieldName) { return String.format( "(trim(str(year(%1$s))) " + "|| '-' || (case when month(%1$s) < 10 then '0' else '' end) || trim(str(month(%1$s))) " + "|| '-' || (case when day(%1$s) < 10 then '0' else '' end) || trim(str(day(%1$s))))", fieldName);//from w w w.java2 s. c o m } }