Now why would Frog want to "store" header information? Because, as the last flood showed, he uses these legitimate headers, Subject lines and all, to flood apas with them, while the accompanying body text holds his obscene, deranged, homosexual fantasies. Just how much else "information" does this bastard have on his machine regarding users of apas? http://groups.google.com/groups?q=xx%40nospam.net&start=90&hl=en&lr=&ie=UTF-8&newwindow=1&output=search&selm=e%23pOnwUqCHA.2296%40TK2MSFTNGP09&rnum=93 Tiny URL: http://tinyurl.com/tmni From: xx (xx@nospam.net) Subject: Retrieve Date from Mail/News: HOW? Newsgroups: microsoft.public.vb.general.discussion, microsoft.public.vb.winapi Date: 2002-12-21 17:07:48 PST Hi Mail and News messages bear a Header with 'Date: ' I would like to collect and store that information (with the GMT correction) I ran into problems because of the variety of formats: 21 Dec 2002 07:01:23 +0100 Sat, 21 Dec 2002 14:20:29 +0100 (CET) Fri, 20 Dec 2002 23:14:25 -0500 Fri, 20 Dec 2002 23:20:58 -0800 (PST) Sat, 21 Dec 2002 04:26:44 GMT That is just a sampler. Worse, I suspect there are more 'legal' formats. I tried InternetTimeToSystemTime : it works fine with HTTP dates (collect date of last update...) it does not like the mail formats at all, with conversions ranging from slightly false to outright crazy I hope there is some "silver bullet" API to take care of that, but I did not find it. Any hint? (I did something pure-VB, but I hope something more elegant exists. On top, my OS is not necessarily English: Hence "Dec" should spell "Déc" or "Dez" or "Dic" or "Diz" if I use VB CDate functions without precaution Hence 15 lines of code for just that....) Thanks Private Declare Function InternetTimeToSystemTime Lib "wininet.dll" _ (ByVal lpszTime As String, _ ByRef pst As SYSTEMTIME, _ ByVal dwReserved As Long) _ As Long