---
title: "InputElement.SetDateTimeLocalValue"
url: "https://reference.aspose.com/html/net/aspose.html.forms/inputelement/setdatetimelocalvalue/"
product: "Aspose.HTML for .NET API Reference"
description: "InputElement SetDateTimeLocalValue 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 datetime-local"
---

## InputElement.SetDateTimeLocalValue 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 "datetime-local"

```csharp
public void SetDateTimeLocalValue(DateTime value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTime | The date object. |

### See Also

* class [InputElement](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
