Dim Doc1 as NotesDocument Dim DateV as Variant Dim EffectiveDate as String If Not doc1.BaseSalaryEffectiveDate(0) = "" Then DateV = Datevalue(doc1.BaseSalaryEffectiveDate(0)) EffectiveDate = Cstr(Cdat(DateV)) End If