OpenPetra
Free Administration Software for Non-Profits
Ict.Testing.NUnitTools.DateConverter Class Reference

This converter finds the different date substrings in a string like a message. Actually the common date format looks like "dd-MMM-yyyy" and so we are dealing with strings like "This Date is valid from 17-JAN-2009 to 21-FEB-2010". More...

Public Member Functions

 DateConverter ()
 ... More...
 
DateTime GetNthDate (String inputString, int n)
 Gets the n'th date value from a string. Refering to our example string "This Date is valid from 17-JAN-2009 to 21-FEB-2010" the first value is "17-JAN-2009" (converted to date format) and the second value is "21-FEB-2010" More...
 
String GetDateString (DateTime dateTime)
 We have to create own strings in an apropriate date format. More...
 

Detailed Description

This converter finds the different date substrings in a string like a message. Actually the common date format looks like "dd-MMM-yyyy" and so we are dealing with strings like "This Date is valid from 17-JAN-2009 to 21-FEB-2010".

Constructor & Destructor Documentation

◆ DateConverter()

Ict.Testing.NUnitTools.DateConverter.DateConverter ( )
inline

...

Member Function Documentation

◆ GetDateString()

String Ict.Testing.NUnitTools.DateConverter.GetDateString ( DateTime  dateTime)
inline

We have to create own strings in an apropriate date format.

Parameters
dateTimeDate which shall be converted.
Returns

◆ GetNthDate()

DateTime Ict.Testing.NUnitTools.DateConverter.GetNthDate ( String  inputString,
int  n 
)
inline

Gets the n'th date value from a string. Refering to our example string "This Date is valid from 17-JAN-2009 to 21-FEB-2010" the first value is "17-JAN-2009" (converted to date format) and the second value is "21-FEB-2010"

Parameters
inputStringThe string which shall be searched for date entries
nThe number of the hit which shall be searched
Returns

The documentation for this class was generated from the following file: