Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 11th, 2005, 10:59 PM
Guy Dillen
Guest
 
Posts: n/a
Default C# DateTime -> XML DateTime

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

Thanks,
Guy


  #2  
Old November 11th, 2005, 10:59 PM
SQL Server Development Team
Guest
 
Posts: n/a
Default Re: C# DateTime -> XML DateTime

Have you looked at the XmlConvert class?


--Dare

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


"Guy Dillen" <guy_dillen@hotmail.com> wrote in message
news:3f5f632e$0$13863$ba620e4c@reader0.news.skynet .be...[color=blue]
> Is there a method available to convert a C# DateTime format to XML[/color]
DateTime[color=blue]
> format?
>
> Thanks,
> Guy
>
>[/color]


  #3  
Old November 11th, 2005, 10:59 PM
Guy Dillen
Guest
 
Posts: n/a
Default Re: C# DateTime -> XML DateTime

yes i have looked at this lass, but does this also work in the direction
C#->XML?


"SQL Server Development Team" <sqldev@microsoft.com> wrote in message
news:eIggMg8dDHA.2368@TK2MSFTNGP09.phx.gbl...[color=blue]
> Have you looked at the XmlConvert class?
>
>
> --Dare
>
> --
> This posting is provided "AS IS" with no warranties, and confers no[/color]
rights.[color=blue]
>
>
> "Guy Dillen" <guy_dillen@hotmail.com> wrote in message
> news:3f5f632e$0$13863$ba620e4c@reader0.news.skynet .be...[color=green]
> > Is there a method available to convert a C# DateTime format to XML[/color]
> DateTime[color=green]
> > format?
> >
> > Thanks,
> > Guy
> >
> >[/color]
>
>[/color]


  #4  
Old November 11th, 2005, 11:00 PM
Oleg Tkachenko
Guest
 
Posts: n/a
Default Re: C# DateTime -> XML DateTime

Guy Dillen wrote:
[color=blue]
> yes i have looked at this lass, but does this also work in the direction
> C#->XML?[/color]

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.