Here you can find the source of getDate(final String value)
private static Timestamp getDate(final String value)
//package com.java2s; //License from project: Open Source License import java.sql.Timestamp; import java.util.Calendar; public class Main { private static Timestamp getDate(final String value) { if (value.equalsIgnoreCase("NOW")) return new Timestamp(Calendar.getInstance().getTime().getTime()); else//w ww .java 2s . c o m return Timestamp.valueOf(value); } }