by rph » Tue Jul 13, 2021 6:09 pm
Hi Sean
Thanks for your reply.
The expectation of the user, if he enters "8:15" would be to find every record that has time-portion "08:15" regardless of the date (today, last christmas, what ever). So it should do a "string"-search. Of course, ">8:15" would not work in this case.
So, in some cases we split this in two separate fields: one with the date and one with the time as string (5 characters long). When we then show these fields in a grid-component and let the user search for "8:15", he get what he expects: every record with time "08:15" because we have a string-search.
If we put these 2 values in one date-field in the database but show these in two separate colums with this date-field in the data-grid but in one it has just the date-part and in the second column just the time part, the user will have no result, if he searches for "8:15". For the user the data-grid looks exactly the same but he has differen results.
So maybe the solution would be, to define an additional date-format for the search in such a field that makes just a formated date-string and the search will then make a string-search on that.
Hope I could explain it a little bit clearer.
Best
Roland