Hi PG, The first code works properly. So thank you so much for that. Unfortunately, the second code still gives me the same message when I run it. I looks to me correct to me because it uses the variable minute, which has been defined in the first part of the code, but somehow it does not work. I created a new variable which I called min and it contains only the minutes from the time and then I tried to sort by min, date and hour but it did not work either. Any ideas on how to solve this issue? Thank you in advance.
... View more