protected Field createDateField(int fieldConstant, Date value, Store store, Resolution resolution) {
if (value == null)
return null;
String valueText = DateTools.dateToString(value, resolution);
return new Field(String.valueOf(fieldConstant), valueText, store, Index.UN_TOKENIZED);
}