Hi makumbi,
Use DateTime.Now to set the current DateTime.
Please refer below sample.
HTML
Current Date:<asp:TextBox ID="txtDate" runat="server" />
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
txtDate.Text = DateTime.Now.ToString("dd/MM/yyyy");
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
txtDate.Text = DateTime.Now.ToString("dd/MM/yyyy")
End Sub
Screenshot