Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Im using interop.domino.dll to extract LotusNotes schemas from domino database. Now the problem is inside the schema I'm getting datetime in the following format
20150323T012130,00-08 which is not convertible to C# DateTime. It will be a great help if someone provide me some input on this.
Posted
Comments
ZurdoDev 23-Mar-15 7:47am    
You may have to parse it yourself.

1 solution

DateTime.ParseExtract might help you.
C#
string lotusNotesDateTime = "20150323T012130,00-08";

string format = "yyyyMMdd'T'HHmmss";

DateTime dateTime = DateTime.ParseExact(lotusNotesDateTime.Substring(0, 15), format, CultureInfo.InvariantCulture);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900