Subject: Re: Problem with date command
To: None <ipt@scraemon.org>
From: Colin J. Raven <colin@kozy-kabin.nl>
List: netbsd-help
Date: 12/12/2004 19:49:08
On Dec 12, ipt@scraemon.org launched this into the bitstream:

> The date command isn't giving output consistent with its man page.  This
> command, 'date +%c/%m/%d', should display
>
> 	2004/12/12
>
> instead it displays
>
> 	Sun Dec 12 11:57:24 2004/12/12
>
> This used to display correctly in versions past, although I don't
> remember which versions exactly.  I'm running 2.0 right now.

This should do it:

date +%Y/%m/%d

Regards & HTH,
-Colin
--
Colin J. Raven
NetBSD on a Cobalt Qube2 - http://www.NetBSD.org - 
Sun Dec 12 19:48:00 UTC 2004
  7:48PM  up 1 day,  4:44, 7 users, load averages: 1.33, 1.26, 1.19