Quote from
Gaev on November 20, 2021, 5:21 pm
@gustavo1973
The schedules are received from a database in text format "HH:MM:SS", both the same
but when creating the date object with your plugin to be able to see the difference it tells me that it is wrong
I do not have the date as data, only the hours
I can not be sure of what you are doing, but it looks like you may need to create a date object with a date (say today at midnight), then add the time from your database.
If you upload a simple app with just two TextEntry Boxes (for the time strings) and a button for the code, I can play with the code to get the time difference between the two times.
@gustavo1973
The schedules are received from a database in text format "HH:MM:SS", both the same
but when creating the date object with your plugin to be able to see the difference it tells me that it is wrong
I do not have the date as data, only the hours
I can not be sure of what you are doing, but it looks like you may need to create a date object with a date (say today at midnight), then add the time from your database.
If you upload a simple app with just two TextEntry Boxes (for the time strings) and a button for the code, I can play with the code to get the time difference between the two times.