Results 1 to 4 of 4

Thread: Date formatting (BST and GMT)

  1. #1

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Date formatting (BST and GMT)

    I'm using the RFC1123 date format on my website so a date formats in the following format: Tue, 10 Dec 2002 22:11:29 GMT
    using the following code:
    Code:
    String.Format("{0:r}", DateTime.Now);
    The question I have is does this string take into account if the server is running on British Summer Time and therefore append BST instead of GMT. If not does anyone know of a way of doing it?

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  2. #2
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Date formatting (BST and GMT)

    You'll get the server's datetime, so if the server's time updates to BST you site will also.
    TPM

    Add yourself to the VBForums Frappr Map!!

  3. #3

    Thread Starter
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Date formatting (BST and GMT)

    Yes it would have the correct time but I'm not so sure it puts BST at the end of the date or just GMT. Any experience of it?

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

  4. #4
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    Re: Date formatting (BST and GMT)

    i would help u dude but im not the sharpest tool in the shed - lol
    it works 60% of the time, all the time.

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