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 7868535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:02:06+00:00 2026-06-03T01:02:06+00:00

I understand my question is pretty incomplete .. I am basically writting date and

  • 0

I understand my question is pretty incomplete .. I am basically writting date and time to xml to record when the file was created .. The exact format i want is “04/04/12 13:30:40”

I tried to different ways to get what I want and the closest i found is using this ..

           Dim Date_Time As Date = Date.Now

which will show like

enter image description here

Pretty close rite ? but when I write it variable Date_Time to XML it becomes totally different .. such as ..

         2012-05-02T09:24:48.7005197+01:00

Hope someone can help me out .. THanks ..

PS. I was using

          Dim xmlDoc As New XDocument(
          New XElement("FILE",
          New XAttribute("FileDate", Date_Time))

to create xml.

  • 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-03T01:02:08+00:00Added an answer on June 3, 2026 at 1:02 am

    try something like this when you write to the file:

    date_time.ToString("dd/MM/yyyy HH:mm:ss")
    

    I think adding tt to the end will give you the AM/PM bit if you want that too.

    Just to add a bit more info, the following link gives you a example of all the different date formats … good for reference… Click me

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

Sidebar

Related Questions

I've got a pretty simple question. I send a date as millis created by
I understand this is a subjective question but I want to see how others
it's a pretty basic question but I don't understand why the code below does
I'm pretty new to WPF, so please understand if this question is too simple.
My question is not about GPGPU. I understand GPGPU pretty decently and that is
My question is pretty straightforward: You are an executable file that outputs Access granted
This might be a pretty straightforward question, but I'm trying to understand some of
Pretty naive question. I don't really understand the term 'translate' here.
This is probably an easy question, but I want to understand better how Apache
The question is pretty self-explanatory. I don't understand what the return is doing in

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.