Compare Two dates

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Compare Two dates

Post by Silvio.Falconi »

I have Two dates as strings (on a array)
Ddcheck_in and ddcheck_out
And Two dates on variables
oApp(): datainiziale
oApp():datafinale
I made

If dtos(oApp() datainiziale)=dtos(ddcheck_in) .and. dtos(oApp():datafinale) = dtos(ddcheck_out)
lDaily=.t.
Endif

Why not run ok?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Compare Two dates

Post by MarcoBoschi »

If dtos(oApp():datainiziale)=dtos(ddcheck_in) .and. dtos(oApp():datafinale) = dtos(ddcheck_out)
lDaily=.t.
Endif
Marco Boschi
info@marcoboschi.it
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Compare Two dates

Post by Silvio.Falconi »

Wich Is changed Marco
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply