Hi samsmuthu,
Check the below sample.
HTML
<asp:FileUpload ID="fuUpload" runat="server" />
<asp:Button Text="Upload" runat="server" ID="btnUpload" OnClick="OnUpload" />
Code
C#
protected void OnUpload(object sender, EventArgs e)
{
DateTime createdTime = System.IO.File.GetCreationTime(fuUpload.PostedFile.FileName);
ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('Created Date : " + createdTime.ToString() + "');", true);
}
VB.Net
Protected Sub OnUpload(ByVal sender As Object, ByVal e As EventArgs)
Dim createdTime As DateTime = System.IO.File.GetCreationTime(fuUpload.PostedFile.FileName)
ClientScript.RegisterClientScriptBlock(Me.GetType(), "alert", "alert('Created Date : " & createdTime.ToString() & "');", True)
End Sub