Search found 297 matches: ctod

Return to advanced search

Set Filter in Tdatabase/tdata

... I must filter the Reserva.dbf local cTipoElemento:="01" local nElemento:= 5 local dDataIniziale:= ctod("04/07/2021") local dDataFinale:= ctod("08/07/2021") and I made this command oReservations:Exec( < || SET FILTER TO AllTrim( ...
by Silvio.Falconi
Mon Apr 19, 2021 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Set Filter in Tdatabase/tdata
Replies: 6
Views: 679

Re: Funcion para convertir fecha a dias

Armando no lo he probado pero quizas funcione

DATE() - CTOD("01/01/0001")
by artu01
Sat Feb 06, 2021 10:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funcion para convertir fecha a dias (SOLUCIONADO)
Replies: 8
Views: 648

Re: aSort

Rao. Please can you sort this:   ::aDatos := { ;                 { "Raiz",    1,  1, 0, CToD( "01/02/2021" ), 0 }, ;                 { "cuatro",  1,  5, 1, CToD( "01/01/1921" ), 0 }, ;            ...
by goosfancito
Mon Feb 01, 2021 4:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: aSort
Replies: 10
Views: 711

Re: Validar fecha.

if Empty( CTOD( cStr ) )
// invalid date
endif
by nageswaragunupudi
Wed Jan 06, 2021 9:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Validar fecha.
Replies: 9
Views: 694

COMO ABRIR UNA WEB CON CHROME

... )) Else cVenta := Val(StrTran( Alltrim(linetxt),"Venta","" )) lDia :=.F. xfecha := ctod(StrZero(Val(cDia),2)+"/"+nMes+"/"+nAno ) Aadd(mResultado,{xfecha,cCompra,cventa}) Endif EndIf Next oIE:Visible:=.F. oIE:Quit() ...
by CARLOS ATUNCAR
Fri Dec 18, 2020 1:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: COMO ABRIR UNA WEB CON CHROME
Replies: 2
Views: 809

Fiscal Year ( fy ) Calculator

To All

Just curious if FiveWin has a FW function to calculate a Fiscal Year .. like:

dDate := ctod("06/27/2020")
nFy := Whatever_function( dDate )

nFy should = 2020

Thanks
Rick Lipkin
by Rick Lipkin
Mon Jul 06, 2020 4:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fiscal Year ( fy ) Calculator
Replies: 1
Views: 459

TITLETEXT Refresh() Arrays...(SOLVED)

... to array If lFirst oVar_AA[t,01] := aVar_AA[t,01] := "Last Update : "+Left(Time(),5) oVar_AA[t,02] := aVar_AA[t,02] := PadL(CDoW(CToD(AllTrim(P6_AAAA->CDay_07))),17) oVar_AA[t,03] := aVar_AA[t,03] := PadL(CDoW(CToD(AllTrim(P6_AAAA->CDay_06))),17) oVar_AA[t,04] := aVar_AA[t,04] ...
by RiazKhan
Sat Jun 06, 2020 7:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TITLETEXT Refresh() Arrays...(SOLVED)
Replies: 2
Views: 516

seek with tdatabase

... not for a a range date I made a test #include "Fivewin.ch"request dbfcdxrequest dbffptFunction test()*local ddcheckin  := ctod("31/07/2020")*local ddcheckout := ctod("31/07/2020")local ddcheckin  := ctod("02/07/2020")local ...
by Silvio.Falconi
Wed Jun 03, 2020 5:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: seek with tdatabase
Replies: 1
Views: 382

How To Refresh() TITLETEXT With Arrays...???

... to array If lFirst oVar_AA[t,01] := aVar_AA[t,01] := "Last Update : "+Left(Time(),5) oVar_AA[t,02] := aVar_AA[t,02] := PadL(CDoW(CToD(AllTrim(P6_AAAA->CDay_07))),17) oVar_AA[t,03] := aVar_AA[t,03] := PadL(CDoW(CToD(AllTrim(P6_AAAA->CDay_06))),17) oVar_AA[t,04] := aVar_AA[t,04] ...
by RiazKhan
Mon May 25, 2020 3:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How To Refresh() TITLETEXT With Arrays...???
Replies: 2
Views: 684

Re: uCharToVal returns "01/01/2020" as 20/09/0090

? DToS( CToD( "01/01/2020" ) )
by Antonio Linares
Mon May 04, 2020 6:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: uCharToVal returns "01/01/2020" as 20/09/0090
Replies: 4
Views: 978

strange error for calculating days !!Resolved!!

I have 4 date ranges (periods) I have two dates and I want to calculate the number of days for each period. local dcheck_in: = ctod ("17/05/2020") local dCheck_out: = ctod ("17/06/2020") if I do the operation dCheck_out-dcheck_in i get 31 days in the calculation function ...
by Silvio.Falconi
Thu Apr 23, 2020 10:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: strange error for calculating days !!Resolved!!
Replies: 3
Views: 646

get problem not execute ON CHANGE command

... XbrGetDate(txt_to_date( dDataIniziale) , "Select a date",dStagioneMin,dStagioneMax, .t., 0.6, ,aGet[1] ),; IIF( dDataIniziale=ctod("") .or. dDataIniziale=nil ,; (dDataIniziale:="Select a date",aGet[1]:CTEXT(date_to_txt(dDataIniziale))),; aGet[1]:CTEXT(date_to_txt(dDataIniziale)) ...
by Silvio.Falconi
Wed Apr 08, 2020 5:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: get problem not execute ON CHANGE command
Replies: 7
Views: 619

Re: Calculate number of day of year

I made another test

Function test()
Local ddata
Local nreturn

SET DATE ITALIAN
ddata:=date()

nReturn := dData- CTOD("01/01/"+RIGHT(DTOC(dData),2)) +1

RETURN nReturn

return 36577 ( today 21.02.2020)

why not run ok
by Silvio.Falconi
Fri Feb 21, 2020 12:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Calculate number of day of year
Replies: 4
Views: 624

Re: cicle of date

Silvio,

a test with 50 days

SET DATE GERMAN
ddateInit := ctod("31.08.2013")
dDatefinal := ctod("31.08.2019")

DO while dDatefinal >= ddateInit
ddateInit+=50 //add 3 days
MsgAlert( ddateInit )
EndDo

regards
Uwe :D
by ukoenig
Mon Sep 02, 2019 8:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cicle of date
Replies: 5
Views: 643

cicle of date

I wish make a cicle type
ddateInit:="31.08.2013"
dDatefinal:="31.08.2019"

DO while ctod(ddateInit)== ctod(dDatefinal)

...make some procedures


ddateInit+=3 //add 3 days

EndDo


why it is bad ?
by Silvio.Falconi
Mon Sep 02, 2019 7:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cicle of date
Replies: 5
Views: 643
PreviousNext

Return to advanced search