OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Conversion.TDate Class Reference

Performs Date conversions that are needed both on Server and Client side. More...

Static Public Member Functions

static Boolean LongDateStringToDateTimeInternal (String AParseDate, String ADescription, out object AParsedDate, Boolean AShowVerificationError)
 Converts a string to a formatted date string More...
 
static Boolean LongDateStringToDateTimeInternal (String AParseDate, String ADescription, out object AParsedDate)
 Converts a string to a formatted date string. More...
 
static DateTime LongDateStringToDateTime2 (String AParseDate, String ADescription, out TVerificationResult AVerificationResult, Boolean AShowVerificationError)
 Converts a String into a date time. More...
 
static String DateTimeToLongDateString2 (DateTime ADateTime)
 Converts a a date time into a string. More...
 

Detailed Description

Performs Date conversions that are needed both on Server and Client side.

Member Function Documentation

◆ DateTimeToLongDateString2()

static String Ict.Common.Conversion.TDate.DateTimeToLongDateString2 ( DateTime  ADateTime)
inlinestatic

Converts a a date time into a string.

Parameters
ADateTimeDate that should be converted.
Returns
The converted date.

◆ LongDateStringToDateTime2()

static DateTime Ict.Common.Conversion.TDate.LongDateStringToDateTime2 ( String  AParseDate,
String  ADescription,
out TVerificationResult  AVerificationResult,
Boolean  AShowVerificationError 
)
inlinestatic

Converts a String into a date time.

Parameters
AParseDateString which contains the date that should be converted
ADescriptionString about the conversion type that is performed. This is used to gather error messages.
AVerificationResultIf conversion fails it contains detailed information about the error. If conversion is successful: null
AShowVerificationErrorTrue if a error message should be shown if conversion fails.
Returns
The converted date. If the conversion didn't succeed than it contains the Date Min value.

◆ LongDateStringToDateTimeInternal() [1/2]

static Boolean Ict.Common.Conversion.TDate.LongDateStringToDateTimeInternal ( String  AParseDate,
String  ADescription,
out object  AParsedDate 
)
inlinestatic

Converts a string to a formatted date string.

Parameters
AParseDateString which contains the date that should be converted
ADescriptionString about the conversion type that is performed. This is used to gather error messages.
AParsedDateString that holds the parsed date (if successful)
Returns
true if successful, otherwise false

◆ LongDateStringToDateTimeInternal() [2/2]

static Boolean Ict.Common.Conversion.TDate.LongDateStringToDateTimeInternal ( String  AParseDate,
String  ADescription,
out object  AParsedDate,
Boolean  AShowVerificationError 
)
inlinestatic

Converts a string to a formatted date string

Parameters
AParseDateString which contains the date that should be converted
ADescriptionString about the conversion type that is performed. This is used to gather error messages.
AParsedDateString that holds the parsed date (if successful)
AShowVerificationErrortrue if error message box should be shown if conversion fails
Returns
true if successful, otherwise false

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