Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How can I compare the time of a date

I did the following


if(TimeStamp(LlegaCarga,'hh:mm:ss')>'18:00:00','M','N')

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Perhaps this?

if(frac(LlegaCarga)>maketime(18),'M','N')

View solution in original post

3 Replies
johnw
Champion III
Champion III

Perhaps this?

if(frac(LlegaCarga)>maketime(18),'M','N')

Peter_Cammaert
Partner - Champion III
Partner - Champion III

or

if (frac(LlegaCarga) > 0.75, 'M', 'N')

relying on the fact that 6pm or 1800hrs is 3/4 of a single day.

johnw
Champion III
Champion III

Or almost like you had it. I think this works, but I'm less confident in it.

if(text(timestamp(LlegaCarga),'hh:mm:ss'))>'18:00:00','M','N')