---
title: "InputElement.SetDateValue"
url: "https://reference.aspose.com/html/net/aspose.html.forms/inputelement/setdatevalue/"
product: "Aspose.HTML for .NET API Reference"
description: "InputElement SetDateValue method. This method is used to set DateTime object as a value for input element. This method is valid if only the type of the input element is date"
---

## InputElement.SetDateValue method

This method is used to set DateTime object as a value for input element. This method is valid if only the type of the input element is "date"

```csharp
public void SetDateValue(DateTime value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTime | The date object. |

### See Also

* class [InputElement](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
