Format Date As: Sat, 07 Sep 2002 00:00:01 GMT

  • Thread starter Thread starter clintonG
  • Start date Start date
C

clintonG

To comply with RSS 2.0 specifications I need to get a date from a calendar
control and reformat to GMT consistent with RFC 822 [1]. I hope somebody can
save me a lot of think-time and point me to a VB/C# class that will take
various date formats and return the date formatted as GMT.

<%= Clinton Gallagher

[1] http://asg.web.cmu.edu/rfc/rfc822.html
 
Thank you both.

<%= Clinton Gallagher

Richard said:
The .NET DateTime class should be able to do what you want, check these
methods:

UtcNow()
ToLocalTime()
ToUniversalTime() {universal time is gmt time}

Also you can parse/format dates in some pretty complicated ways using the
standard and/or custom date formatting strings:

http://msdn.microsoft.com/library/d...ide/html/cpconcustomdatetimeformatstrings.asp

--Richard

clintonG said:
To comply with RSS 2.0 specifications I need to get a date from a
calendar
control and reformat to GMT consistent with RFC 822 [1]. I hope somebody
can
save me a lot of think-time and point me to a VB/C# class that will take
various date formats and return the date formatted as GMT.

<%= Clinton Gallagher

[1] http://asg.web.cmu.edu/rfc/rfc822.html
 
Back
Top