Convert text to date when string has a long format of the date

Hello Everyone:

I have a string that represents a date. The string is "Monday, Spetember 15, 2008. How do I convert this text to a date. I used the cdat function and gives me an error. Is there something else that can be use? How do I read this info and translate it to a date?

Thanks

Subject: RE: Convert text to date when string has a long format of the date

The constructor of the NotesDateTime class seems to handle these okay.

Subject: RE: Convert text to date when string has a long format of the date

How do I assign this text value to a notesdatetime item? Is that what you mean? Please explain.

Thanks

Subject: RE: Convert text to date when string has a long format of the date

Dim glory As NotesDateTimeSet glory = New NotesDateTime(x)

Call doc.ReplaceItemValue(“SomeField”, glory)

Subject: RE: Convert text to date when string has a long format of the date

Thanks, I will try it.