RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

DateFieldDefinition..::..FormatDateValue Method

Formats the date value.

Namespace:  RingSoft.DbLookup.ModelDefinition.FieldDefinitions
Assembly:  RingSoft.DbLookup (in RingSoft.DbLookup.dll)

Syntax


public static string FormatDateValue(
	string dateValue,
	string dateFormatString,
	DbDateTypes dateType,
	CultureInfo culture,
	bool convertToLocalTime
)
Public Shared Function FormatDateValue ( _
	dateValue As String, _
	dateFormatString As String, _
	dateType As DbDateTypes, _
	culture As CultureInfo, _
	convertToLocalTime As Boolean _
) As String
public:
static String^ FormatDateValue(
	String^ dateValue, 
	String^ dateFormatString, 
	DbDateTypes^ dateType, 
	CultureInfo^ culture, 
	bool^ convertToLocalTime
)

Parameters

dateValue
Type: String
The date value.
dateFormatString
Type: String
The date format string.
dateType
Type: RingSoft.DbLookup.QueryBuilder..::..DbDateTypes
Type of the date.
culture
Type: CultureInfo
The culture.
convertToLocalTime
Type: Boolean
if set to true [convert to local time].

Return Value

System.String.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptiondateValue - null