473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
Aug 4 '05 #1
3 2121
Clinton,

Can't you not use a ToString with a Iformat provider?

http://msdn.microsoft.com/library/de...classtopic.asp

ZuluTime you can get from datetime with

http://msdn.microsoft.com/library/de...tcnowtopic.asp

I hope this helps,

Cor
Aug 5 '05 #2
Thanks Cor. I'll study your referrals.
I've got the following from 'Richard' who responded in another group.

<quoteRichard>
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/de...matstrings.asp
</quoteRichard>

<%= Clinton Gallagher

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:eF****************@TK2MSFTNGP12.phx.gbl...
Clinton,

Can't you not use a ToString with a Iformat provider?

http://msdn.microsoft.com/library/de...classtopic.asp

ZuluTime you can get from datetime with

http://msdn.microsoft.com/library/de...tcnowtopic.asp

I hope this helps,

Cor

Aug 5 '05 #3
Clinton

universal time = gmt time = Zulu Time

Was you ever in Greenwich it is now in the middle of London, however still
looking very nice.

:-)

Cor
Aug 5 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: ThunderMusic | last post by:
Hi, I'm using the timespan's Parse method to build my timespan from a string. here's the line I use : m_Delay.Parse(RegKey.GetValue("Delay", "01:00:00")) the value I get from the RegKey is...
4
by: Muscha | last post by:
Hello, I have a date string in the following format: "2003-10-29T17:44+00:00" When I put it to DateTime.Parse() method it throws an exception, how do I parse this date format? Thanks, /m
5
by: ABC | last post by:
How to initial the datetime variable as value to "01/01/2005 00:00:00"?
14
by: Michael Barrido | last post by:
I have this for example: Dim iSeconds as int32 = 3600 '3600 seconds is one hour How do i convert it to "01:00:00" ? Please help. Thanks in advance!
1
by: Jason Chan | last post by:
DateTime mydate = new DateTime(2006,1,1,0,0,0); string testStr = mydate.ToString("hh:mm:ss"); //return 12:00:00 mydate = new DateTime(2006,1,1,1,0,0) testStr = mydate.ToString("hh:mm:ss");...
7
by: Rithish | last post by:
Hello. I noticed a strange thing while using strtotime() and date() functions in combination to generate from MySQL into a readable format. By default, the MySQL date field will be 0000-00-00...
0
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hello I am using the ASP.NET 2 Login control. When my LoggedIn event handler is called, the Context.Response.Cookies Expires property is correctly set. On subsequent postback however, the...
4
by: Rohit | last post by:
I am trying to get client machine's timezone from my java script . But i have no idea how would i be able to get it in uclibc format. (e.g. GMT+0IST-1,M3.5.0/01:00:00,M10.5.0/02:00:00) . I saw...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.