473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# DateTime -> XML DateTime

Is there a method available to convert a C# DateTime format to XML DateTime
format?

Thanks,
Guy
Nov 11 '05 #1
3 29492
Have you looked at the XmlConvert class?
--Dare

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Guy Dillen" <gu********@hotmail.com> wrote in message
news:3f***********************@reader0.news.skynet .be...
Is there a method available to convert a C# DateTime format to XML DateTime format?

Thanks,
Guy

Nov 11 '05 #2
yes i have looked at this lass, but does this also work in the direction
C#->XML?
"SQL Server Development Team" <sq****@microsoft.com> wrote in message
news:eI**************@TK2MSFTNGP09.phx.gbl...
Have you looked at the XmlConvert class?
--Dare

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Guy Dillen" <gu********@hotmail.com> wrote in message
news:3f***********************@reader0.news.skynet .be...
Is there a method available to convert a C# DateTime format to XML

DateTime
format?

Thanks,
Guy


Nov 11 '05 #3
Guy Dillen wrote:
yes i have looked at this lass, but does this also work in the direction
C#->XML?


All you need is myDateTime.ToString("s")

"s" means SortableDateTimePattern (based on ISO 8601), which is exactly what
Xml Schema DateTime format is based on.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: F. GEIGER | last post by:
py2exe and datetime -> No module named datetime I've begun to use the stdlib module datetime instead of my home brewn classes. Since then a py2exe app doesn't run anymore: Traceback (most...
2
by: Krzysztof Kazmierczak | last post by:
Hi All I wonder what is better to use: (DateTime) or DateTime.Parse Thanks Kind regards Krzysztof Kazmierczak
14
by: dananrg | last post by:
Been using the ODBC module for Python 2.1 (Win32) and had another question. When I return data from date columns, it's in a strange object form, e.g. <something or other> (don't have the output in...
18
by: Sean | last post by:
I have been using List(of String) when I could easily be using a string array instead. Is it still considered best practice to use Generic list of string rather then a string array? Thanks
0
by: pranesh.nayak | last post by:
Hello Group, (tech: C#, VS2005) I'm facing a problem in passing Nullable<DateTimeto a webservice. Below is code in webservice wrapper (reference.cs) used set/get date. When i set date value...
1
by: mp | last post by:
Is there a constructor for an mx.DateTime object which takes a datetime.datetime object? It seems like a pretty common thing to do but I didn't see such a constructor in the mx.DateTime docs. ...
4
by: Manikandan | last post by:
Hi, I'm inserting a datetime values into sql server 2000 from c# SQL server table details Table name:date_test columnname datatype No int date_t DateTime ...
4
by: chandy | last post by:
Hi, I have a datetime+offset as a string and want to get two datetimes from it; the local and UTC. So far I can only do it by splitting on the + or - of the offset and creating a new date with...
0
by: sloan | last post by:
Here is one I've been tinkering around with for a few days. Given the bottom 2 classes and one interface. (at the very bottom) Is there a way to represent EmployeeCollection :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.