473,242 Members | 1,813 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,242 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 2117
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.