## Aurigma Image Uploader 7.0.35

# PostFields..::.GetDateTimeValue Method

- Collapse All Sections
- PostFields Class
- See Also
- Language Filter ( all languages )

Returns a DateTime that represent a value of the specified field.

Namespace: Aurigma.ImageUploader
Assembly: Aurigma.ImageUploader (in Aurigma.ImageUploader.dll)

## Syntax

### Visual Basic

    Public Shared Function GetDateTimeValue ( _
    	fields As NameValueCollection, _
    	name As String _
    ) As DateTime

### C#

    public static DateTime GetDateTimeValue(
    	NameValueCollection fields,
    	string name
    )

### Parameters

fields

  Type: System.Collections.Specialized..::.NameValueCollection

  The collection of POST fields returned by the Package.PackageFields property.

name

  Type: System..::.String

  The name of the field to retrieve a value.

### Return Value

Type: System..::.DateTime

The DateTime representation of the specified field value.

Note

If the value cannot be converted to DateTime, this method returns an empty DateTime object.

## See Also

### Reference

- PostFields Class
- Aurigma.ImageUploader Namespace