inputEx Documentation Back to homepage

### inputEx Documentation > inputEx.DateField 0.2.2

## Static Class inputEx.DateField - extends inputEx.StringField

A Date Field.

Known Subclasses:
  inputEx.DatePickerField inputEx.FrenchDate

### Constructor

inputEx.DateField `( options )`

Parameters:
  `options <Object>` - Add the folowing options:
  - dateFormat: default to 'm/d/Y'

### Properties

#### static groupOptions `- Object`

group Options for each field

#### options `- Object`

Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class.

### Methods

#### getValue

`<Date> getValue()`
Return value in DATETIME format (use getFormattedValue() to have 04/10/2002-like format)
Returns:

`<Date>` The javascript Date object

#### setOptions

`setOptions(options)`
Adds the 'inputEx-DateField' default className
Parameters:

`options <Object>` - Options object (inputEx inputParams) as passed to the constructor

#### setValue

`setValue(val[,sendUpdatedEvt])`
Format the date according to options.dateFormat
Parameters:

`val <Date>` - Date to set

`sendUpdatedEvt <boolean>` optional - (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### validate

`validate()`
Specific Date validation depending of the 'format' option

#### Methods inherited from class inputEx.Field:

`getEl, fireUpdatedEvt, show, close, onBlur, onChange, render, updatedEvt, getState, hide, displayMessage, destroy, isEmpty, clear,`

#### Methods inherited from class inputEx.StringField:

`initEvents, updateTypeInvite, disable, enable, onFocus, renderComponent, focus, onKeyUp, onKeyPress, setClassFromState, getStateString,`

Copyright (c) 2007-2009 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 2.0.0 on Wed, 04 Mar 2009 15:41:30 GMT using neyricjslibs-template.