CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    4

    World time in .net

    Hi all,

    i want to make world time using asp.net and c#.
    Last edited by jitendracode2006; January 31st, 2006 at 03:11 AM. Reason: clear question
    Code2006

  2. #2
    Join Date
    Apr 2003
    Location
    India
    Posts
    17

    Re: World time in .net

    Hi,

    If you mean UTC by world time, you can use ToUniversalTime Method of DateTime struct to convert a DateTiem to UTC DateTime.

    See http://msdn.microsoft.com/library/de...ltimetopic.asp

    Regards

    Kish.

  3. #3
    Join Date
    Jan 2006
    Posts
    4

    Re: World time in .net

    thnks kish,

    i want to make time zone utility which u can see in :Codeguru editoption menu.
    Code2006

  4. #4
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    1,080

    Re: World time in .net

    The Framework can give you information about the time zone you are in through the TimeZone.CurrentTimeZone property, but it cannot give you a list of all time zones as far as I'm aware. You'd have to supply that information yourself. There are probably Web services available that could provide the information.
    Tutorials: Home & Learn | Start VB.NET | Learn VB.NET | C# Station | GotDotNet | Games in VB.NET 101 Samples: 2002 | 2003 | 2005 | More .NET 2.0 (VB.NET, C#) Articles: VB.NET | C# | ASP.NET | MoreFree Components: WFC | XPCC | ElementsEx | VBPP | Mentalis | ADO.NET/MySQL | VisualStyles | Charting (NPlot, ZedGraph) | iTextSharp (PDF) | SDF (CF) ● Free Literature: VB 2005 (eBook) | VB6 to VB.NET (eBook) | MSDN Magazine (CHM format) ● Bookmarks: MSDN | WinForms .NET | ASP.NET | WinForms FAQ | WebForms FAQ | GotDotNet | Code Project | DevBuzz (CF) ● Code Converter: C#/VB.NET | VB.NET/C# | VS 2005 add-in

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured