Re: Date format

From: abdelkarim.daddi-hammou@VMD.DESJARDINS.COM
Date: Mon Jan 13 2003 - 14:58:27 EST


Thanks

Abdelkarim Daddi-Hammou
Administrateur de systèmes UNIX /WebSphere -
UNIX /WebSphere Systems Administrator
Valeurs Mobilières Desjardins - Desjardins Securities
tél. (514) 281-2244 x 7604
adh@vmd.desjardins.com

Bill Thompson <bill.thompson@goodyear.com>
Sent by: IBM AIX Discussion List <aix-l@Princeton.EDU>
13/01/2003 14:25
Please respond to IBM AIX Discussion List

 
        To: aix-l@Princeton.EDU
        cc:
        Subject: Re: Date format

Problably not as simple as you wanted but will work:

date '+%m' | sed 's/^0/ /'

Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear
Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

 ----- Original Message -----
 From: abdelkarim.daddi-hammou@VMD.DESJARDINS.COM
 Newsgroups: bit.listserv.aix-l
 To: aix-l@Princeton.EDU
 Sent: Monday, January 13, 2003 11:30 AM
 Subject: Date format

 Hi,

 I am looking for a clue to display the month as a decimal number (1-12),
 in a two-digit field, with a blank space as leading space fill instead of
 zero.

 There is a similar option for the Day, but I didn't find it for month :

 %e Displays the day of the month as a decimal number (1-31). In a
 two-digit
 field, a blank space is used as leading space fill.

 Any idea ?

 TIA

 Abdelkarim Daddi-Hammou
 Administrateur de systèmes UNIX /WebSphere -
 UNIX /WebSphere Systems Administrator
 Valeurs Mobilières Desjardins - Desjardins Securities
 tél. (514) 281-2244 x 7604
 adh@vmd.desjardins.com



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:28 EDT