Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VariableAccessor.GetDateTime(String, String, DateTime) Method

Returns a DateTime that contains the value of the specified variable.

[Visual Basic]
Public Overloads Sub GetDateTime( _
   ByVal name As String, _
   ByVal format As String, _
   ByVal defaultValue As Date _
)
[C#]
public DateTime GetDateTime(
   string name,
   string format,
   DateTime defaultValue
);

Parameters

name
The name of the variable to be read.
format
The expected format of the variable's value
defaultValue
The value to be returned if ResolveVariable returns null.

Return Value

A DateTime that contains the value of the specified variable or defaultValue, if ResolveVariable returns null.

See Also

VariableAccessor Class | Spring.Objects.Factory.Config Namespace | VariableAccessor.GetDateTime Overload List