I agree.

Atte.
 Vic

On Thu, 24 Sep 2009, Ron Pinkas wrote:
Any opinions?

--------------------------------------------------
From: "Mario Simões Filho" <ma...@argoninformatica.com.br>
Sent: Thursday, September 24, 2009 12:08 PM
To: <ron.pin...@xharbour.com>
Subject: DTOC(DATE(),"YYYYMMDD")


Dear Ron,

I came across the need to "transform" a date in character but in a
different format defined in the "SET DATE"

thinking about it I changed the "DTOC" to accept a second parameter, it's
there below

I do not know how the politics of implementation of new features in
xHarbour, the Harbor has a function "HB_DTOC" with this feature

Thank you for your attention

HB_FUNC(  DTOC )
{
   if( ISDATE( 1 ) )
   {
      char szDate[9];
      char szFormatted[ 11 ];
      hb_retc( hb_dateFormat( hb_pardsbuff( szDate, 1 ),
szFormatted,(ISCHAR(2)?hb_parcx(2):hb_setGetDateFormat() ) ) );
   }
    else
    {
       hb_errRT_BASE_SubstR( EG_ARG, 1118, NULL, "HB_DTOC", 1,
hb_paramError( 1 ) );
    }
 }




------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to