- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Exclude Time Data
Hello,
I have a column that is in Date-Time format. I would like to exclude rows where the time includes 04:00:00, but my script isn't working. Any help is appreciated.
Script in the Exclude column:
If( Contains( Format(:DT, "hh:mm:ss"), "04:00:00"),
1,
0
)
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Exclude Time Data
You can check for the time of day
If(Time Of Day(:DT) == In Hours(4),
1
,
0
);
Few examples
Show(
Time Of Day(03Jun2024:04:00:00) == In Hours(4), // 1
Time Of Day(03Jun2024:04:10:00) == In Hours(4), // 0
Time Of Day(03Jun2024:05:00:00) == In Hours(4) // 0
);
-Jarmo
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Exclude Time Data
You can check for the time of day
If(Time Of Day(:DT) == In Hours(4),
1
,
0
);
Few examples
Show(
Time Of Day(03Jun2024:04:00:00) == In Hours(4), // 1
Time Of Day(03Jun2024:04:10:00) == In Hours(4), // 0
Time Of Day(03Jun2024:05:00:00) == In Hours(4) // 0
);
-Jarmo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Exclude Time Data
Awesome! Thanks for the quick response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Exclude Time Data
Thanks for answering, you made my day.