Java tutorial
//package com.java2s; public class Main { public static String addDateLesserCondition(String conditions, String key, String value) { if ((conditions == null) || (key == null) || (value == null) || (key == "") || (value == "")) return conditions; conditions = (new StringBuilder(String.valueOf(conditions))).append(" and to_date(").append(key) .append(",'yyyy-mm-dd')<to_date('").append(value).append("','yyyy-mm-dd')").toString(); return conditions; } }