hcl-bot
September 22, 2008, 3:34pm
1
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
hcl-bot
September 22, 2008, 4:37pm
2
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.
hcl-bot
September 22, 2008, 5:01pm
3
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
hcl-bot
September 22, 2008, 5:34pm
4
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)
hcl-bot
September 23, 2008, 10:54am
5
Subject: RE: Convert text to date when string has a long format of the date
Thanks, I will try it.