convert local time to another country time

Discussion in 'ASP .Net' started by Salim Afsar, Mar 16, 2006.

  1. Salim Afsar

    Salim Afsar Guest

    Hi,

    My web server is not my country, so server's time and my country time is
    different.
    So code runs on server,
    for example when I run DateTime.Now() function
    it returns server time but I want to get my local time.
    Is there a way to do that?

    Thanks
    Salim Afsar, Mar 16, 2006
    #1
    1. Advertising

    1. Advertising

  2. And check out this reference :

    "Coding Best Practices Using DateTime in the .NET Framework" :
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/datetimecode.asp




    Juan T. Llibre, asp.net MVP
    aspnetfaq.com : http://www.aspnetfaq.com/
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    ===================================
    <Sonu Kapoor [MVP]> wrote in message news:...
    > Checkout this thread:
    >
    > http://groups.google.ca/group/micro...er country time&rnum=3&hl=en#b2c7914b8c33d99e
    >
    > --
    > Sonu Kapoor - [MVP]
    > W: http://www.DotNetSlackers.com
    > B: http://www.Kapoorsolutions.com/blog/
    >
    >
    > ---
    > Posted via www.DotNetSlackers.com
    Juan T. Llibre, Mar 16, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S.Guhananth
    Replies:
    1
    Views:
    546
    Alvin Bruney [Microsoft MVP]
    Apr 30, 2005
  2. Zyron
    Replies:
    2
    Views:
    1,498
    Jukka K. Korpela
    Nov 8, 2005
  3. Replies:
    1
    Views:
    798
    Paul Boddie
    Mar 11, 2007
  4. Jonathan Wood
    Replies:
    1
    Views:
    2,198
    Jonathan Wood
    Nov 1, 2009
  5. Petr Janda
    Replies:
    2
    Views:
    156
    rretzbach
    Mar 8, 2007
Loading...

Share This Page