Print NotesDateTime object in an RTF

Hey All,

I have a NotesDateTime object that I want to print the value of in a RichTextField. I have the following code:

	rtItem.AppendText("Total Time for Week Ending" + reportStartDate)

where rtItem is the RichTextItem and reportStartDate is the NotesDateTime object. Can you not print or write the date value out in text?

Thanks,

Shawn

Subject: Print NotesDateTime object in an RTF

Try:

rtItem.AppendText(“Total Time for Week Ending” + reportStartDate.DateOnly)

since it looks like you don’t need the time part.

Subject: RE: Print NotesDateTime object in an RTF

Thanks Ben,

That got it.

Shawn