
Contributor III
2019-10-08
11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If function returns false when comparing 2 dates
Hello everyone,
I'm trying to compare two dates together, and even though the dates seems to be the same when displayed in a "Text & image" chart, the IF function returns that they're not the same.
Here is what's returned inside each textbox:
Object 1 expression is:
=Today()
Object 2 expression is:
=Date(Comments_FileTime)
Object 3 expression is:
=If(Date(Comments_FileTime) = Today(), '1', '0')
What am I doing wrong here?
Thank you guys for your time,
LesJean
- Tags:
- if
1,747 Views
1 Solution
Accepted Solutions

Partner - Specialist
2019-10-08
11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
probably Comments_FileTime has time.
Try to use Date(Floor(Comments_FileTime))
3 Replies

Partner - Specialist
2019-10-08
11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
probably Comments_FileTime has time.
Try to use Date(Floor(Comments_FileTime))

Partner - Master III
2019-10-08
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try
if(Date#( Comments_FileTime,'YYYY-MM-DD')=today(),1,0)

Contributor III
2019-10-08
11:33 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was it StarinieriG, thanks a lot
1,723 Views
