---
title: SAIFWebDateTimeEdit
summary: API reference for SAIFWebDateTimeEdit.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Presentation.Web.Controls.Infragistics111
reference_type: package
---

# SAIFWebDateTimeEdit

`SAIFWebDateTimeEdit` extends the Infragistics `WebDateTimeEdit` control so that the field clears itself when a user focuses it while displaying one of two sentinel dates (`01/01/1901` or `12/31/9999`) used elsewhere in the application to represent "no date entered." It has no public members beyond the inherited Infragistics surface; all of its added behavior is a single `Init`-time script registration that wires an `onfocus` handler.

## Purpose
- Prevent sentinel min/max dates from displaying as if they were real user-entered values by clearing the field on focus ([BR-CTL-012](../../business-rules.md#br-ctl-012-focusing-a-sentinel-date-clears-the-field), [BR-CTL-013](../../business-rules.md#br-ctl-013-mindate-and-maxdate-are-treated-as-null-dates)).

## Context
- Namespace: `SAIF.Presentation.Web.Controls.V2`
- Assembly/package: `SAIF.Presentation.Web.Controls.Infragistics111` (packaged as source into `SAIF.BOF.Presentation.Web.Infragistics111`)
- Base class: `Infragistics.WebUI.WebDataInput.WebDateTimeEdit` (external Infragistics 11.1 vendor type; not part of this repository's documentation set)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| _(none added)_ | — | This type adds no public members beyond the inherited `WebDateTimeEdit` surface; its only code is a private `Init` handler that registers client script (see Behavioral notes). |

## Behavioral notes
- `SAIFWebDateTimeEdit_Init` (a private `Handles Me.Init` handler, not part of the public surface) registers the `SAIFWebDateTimeEdit_Focus` client function under the script key `SDTE_Focus` and adds an `onfocus` attribute invoking it with the control's `ClientID`; see [Suppress sentinel dates on focus](../../operations/suppress-sentinel-dates-on-focus.md) for the full step sequence.
- The guarded script registration is coded twice in succession in the source; the second registration attempt is unreachable in effect because the first satisfies the `IsClientScriptBlockRegistered` guard.*

## Constraints and usage notes
- Sentinel-date comparison is a literal string match against `01/01/1901` and `12/31/9999` as displayed text, so it depends on the control's active display format matching those exact strings.*
- Behavior depends on the Infragistics 11.1 client-side API (`igedit_getById`) and is version-locked to `Infragistics35.WebUI.WebDataInput.v11.1`.*

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.

## Sources
- `SAIF.Presentation.Web.Controls.Infragistics111/SAIFWebDateTimeEdit.vb`
