Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9064721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:19:31+00:00 2026-06-16T16:19:31+00:00

I have a AsyncFileupload control on .aspx page where I am uploading an image.

  • 0

I have a AsyncFileupload control on .aspx page where I am uploading an image. I am extracting very basic file information such as date created/accessed.

For every single file, the code gives me one static value that is

01/01/1601 00:00:00

Which obviously cannot be right. I am sure that there is a conversion is done automatically behind.

How can I convert it into actual value AND convert it back into CYYMMDD format (i want this particular format in bd)?
Thanks

on UploadedComplete i run this code

 string savePath = MapPath("~/" + Path.GetFileName(e.FileName));

 FileInfo MyFileInfo = new FileInfo(savePath);

 txt_Textbox1.Text = MyFileInfo.CreationTime.ToString();

this always gives me following output, regardless the actual date is today’s date

01/01/1601 00:00:00

How can i convert it into its original creation date?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T16:19:33+00:00Added an answer on June 16, 2026 at 4:19 pm

    Make sure that MyFileInfo.Exists is true before you use other properties of FileInfo variable.

    I’m sure in your case the MyFileInfo.Exists is false. That’s the reason you’ll get those values for the properties like CreationTime, LastAccessTime, LastWriteTime etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file upload page with an AsyncFileUpload control. When the user browses
I have an asyncfileupload control inside an update panel. In UploadedComplete, i save file
I have an asyncfileupload control that I'm using from the ajaxcontroltoolkit. On the file
I have an asyncfileupload control inside an update panel. The file succesfully upload and
I have used AsyncFileUpload AJAX control to upload a file to a column in
I have a asp:FileUpload control in my page. The default file size is 4MB.
I have Async File Upload <cc1:AsyncFileUpload ID=AsyncFileUpload2 EnableViewState=true Width=400 UploaderStyle=Modern OnClientUploadComplete=showDiv OnUploadedComplete=AsyncFileUpload1_UploadedComplete ClientIDMode=AutoID runat=server
i have a AsyncFileUpload control : <asp:AsyncFileUpload ID=venfileupld runat=server OnUploadedComplete=ProcessUpload /> on its OnUploadedComplete
I have a user control with a updatepanel, script manager and a asyncfileupload control.
I am using a asyncfileUpload control in my page, and that page is derived

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.