🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7441

How to parse dates?

#7441
From: Alex Colic
Date: Tue, 19 Jun 2001 15:05
14 lines
1214 bytes
Hi,

I have a function that returns a date in a month, day, year, time format.
EG. 10/5/00 7:00:00 AM

What I need to do is only display the date portion of the String only.
Sometimes the String has a time element some times it does not.

I have been playing around with the DateFormat function but I can't get it
to work.

Any help, guidance is appreciated.

Alex
Technical Details
Message-ID: <3b2f6a3f$2_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,990109a904f1314,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-19 08:13:43 PST
From: "Alex Colic" <alex.colic@pop-ware.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: How to parse dates?
Date: Tue, 19 Jun 2001 11:05:31 -0400
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 24.150.29.218
Message-ID: <3b2f6a3f$2_2@dnews>
X-Trace: dnews 992963135 24.150.29.218 (19 Jun 2001 08:05:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews