how to format date and time?

jihuawhniu6

New Member
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 .. \[code\] Dim Date_Time As Date = Date.Now\[/code\]which will show like
u1puM.jpg
Pretty close rite ? but when I write it variable Date_Time to XML it becomes totally different .. such as .. \[code\] 2012-05-02T09:24:48.7005197+01:00\[/code\]Hope someone can help me out .. THanks .. PS. I was using \[code\] Dim xmlDoc As New XDocument( New XElement("FILE", New XAttribute("FileDate", Date_Time))\[/code\]to create xml.
 
Back
Top