Search found 297 matches: ctod

Return to advanced search

Re: Convertir un dato de fecha a número

Hola

set date brit
? date() - ctod("1/1/0") // = 43707

Saludos, Euclides
by Euclides
Sun Sep 01, 2019 10:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Convertir un dato de fecha a número
Replies: 5
Views: 566

Re: Convertir un dato de fecha a número

Ok

SET CENTURY ON
SET DATE FORMAT TO "DD/MM/YYYY"
? ( Date() - Ctod( "01/01/1900" ) )

by cnavarro
Sun Sep 01, 2019 10:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Convertir un dato de fecha a número
Replies: 5
Views: 566

Another problem with new XbrGetDate - RESOLVED!!!

...  ,"Seleziona una data",{^ 2019/06/15 }, {^ 2019/09/20 } ,,0.6 ),;               IIF( dDataStart=ctod("") .or. dDataStart=nil ,;                          aGet[3]:cText( "Selezionare una data")         ...
by Silvio.Falconi
Wed Jul 03, 2019 11:17 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another problem with new XbrGetDate - RESOLVED!!!
Replies: 2
Views: 309

Re: tdatabase Filter error

no this is only for test static dDataIniziale,dDataFinale,lshowNumeri on function Beach() //only for test oApp:dDataIniziale := ctod("01-07-2018") oApp:dDataFinale := ctod("07-08-2018") oApp:lshowNumeri:= .t. on Function Change_Plan oReservation:setorder(1) oReservation:Exec( ...
by Silvio.Falconi
Fri May 03, 2019 7:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tdatabase Filter error
Replies: 20
Views: 1616

Re: tdatabase Filter error

... cDbfPathFunction test()Local oreservationLocal cFilterLocal cTypeRoom:="01"Local nElemento:= 2Local dDataIniziale  := ctod("01/07/2018")Local dDataFinale    := ctod("07/08/2018") RDDSetDefault( 'DBFCDX' ) cDbfPath    := cFilePath(GetModuleFileName( ...
by Silvio.Falconi
Thu Apr 25, 2019 5:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tdatabase Filter error
Replies: 20
Views: 1616

Re: strange error

What is strange in it? You look at your own code carefully. You have used CTOD() before setting DATE FORMAT. Till you set the date format is the default format "mm/dd/yy". 14 as month is invalid. To avoid such mistakes it is a good idea to use STOD( ...
by nageswaragunupudi
Mon Feb 25, 2019 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange error
Replies: 2
Views: 450

strange error

If I have this test Function test() Local dDatafine:=ctod("14/08/2019") SET DATE FORMAT "dd/mm/yyyy" SET DATE ITALIAN SET CENTURY ON SET EPOCH TO ( YEAR( DATE() ) - 50 ) ? dDatafine return nil it return me this https://i.postimg.cc/0rRC79S9/fffffffffffffffffffffffffffffffffffffffffffffff.png ...
by Silvio.Falconi
Mon Feb 25, 2019 12:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange error
Replies: 2
Views: 450

Re: Import Chinese Characters from XLS

... ):Value IF (VALTYPE(xReturn)="U") DO CASE CASE cValType=="C" xReturn := "" CASE cValType=="D" xReturn := CTOD( " / / " ) CASE cValType=="N" xReturn := 0 CASE cValType=="L" xReturn := .F. ENDCASE ENDIF xReturn := _CdmType( xReturn, ...
by cdmmaui
Thu Feb 21, 2019 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import Chinese Characters from XLS
Replies: 4
Views: 954

Re: :Setfilter from a defined substring ?

Have you tried with

my_filter = "dtos(oCust:Hiredate) >= dtos(" + ctod(dDate1) + ")"
oCust:SetFilter(my_filter)
by Massimo Linossi
Wed Feb 13, 2019 8:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :Setfilter from a defined substring ?
Replies: 6
Views: 1026

Re: IMPRESION CON TPRINTER EN EPSON TM-T20II

... : "+Origen,aFon5) oPrn:Cmsay(3.5,.2,"Destino : "+Destino,afon5) oPrn:Cmsay(4.5,.2,"Fecha : "+Vec_Dia[dow(ctod(fechasalida))]+ " "+FechaSalida,afon5) * oPrn:Cmsay(5.0,.2,"Hora : "+Am_Pm(AllTrim(HoraSalida)),afon5) oPrn:Cmsay(5.0,.2,"Hora ...
by jbrita
Fri Jan 18, 2019 12:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: IMPRESION CON TPRINTER EN EPSON TM-T20II
Replies: 3
Views: 1112

Re: calculate days

... Integer Minutes aRetVal[3,2] Total Minutes (nn.nnnn) * aRetVal[4,1] Integer Seconds aRetVal[4,2] Total Seconds (nn) * $EXAMPLES$ * FT_ELAPSED(CTOD('11/28/90'), CTOD('11/30/90'), '08:00:00', '12:10:30') * will return: * * aRetVal[1,1] -> 2 (Days) aRetVal[1,2] -> 2.1740 Days * aRetVal[2,1] ...
by MGA
Wed Jan 09, 2019 8:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: calculate days
Replies: 7
Views: 1191

Defining xBrowse COLUMNS for array of hashes

... say an array is made up of a few records of hashes with the following structure h_["receipt"] := "100" h_["date"] := ctod("05/12/2018") h_["amount"] := 1000 How to specify the COLUMNS part in xBrowse command if we just want to display h_["receipt"] ...
by hua
Wed Dec 05, 2018 3:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Defining xBrowse COLUMNS for array of hashes
Replies: 10
Views: 1941

Re: Una pregunta muy tonta

Yo haría dos cosas, primero cambiaría cfecha por ctod(cfecha) , para convertir el campo cfecha a fecha si esta definida Albaran->Fecha como fecha segundo Upper(cnombre)$Upper(Albaran->Spro) . Vamos las pondría las dos en mayúsculas por si acaso ...
by Garbi
Thu Oct 04, 2018 10:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Una pregunta muy tonta
Replies: 4
Views: 1094

Re: Clear a get date

NOT RUN
MENUITEM "Pulisci" ACTION aGet[1]:SetDate( CTOD( "" ) )

or

MENUITEM "Pulisci" ACTION (dDataNote :=cTod(""), aGet[1]:SetDate( dDataNote ) ,aGet[1]:refresh())
by Silvio.Falconi
Fri Aug 03, 2018 9:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Clear a get date
Replies: 7
Views: 802

Re: Clear a get date

It may be easier to use aGet[ 1 ]:SetDate( dNewDate )
For empty date, :SetDate( CTOD( "" ) )
by nageswaragunupudi
Thu Aug 02, 2018 6:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Clear a get date
Replies: 7
Views: 802
PreviousNext

Return to advanced search