protected void AddDateTimeKeywordIndexField(string fieldName, DateTime value) { // convert datetime to format yyyyMMddTHHmmss (eg. 22 Apr 2009 15:36:00 becomes 20090422T153600) _customFields.Add(CreateCustomIndexField(fieldName, string.Format(DateTimeIndexingFormat, value), false)); }