I have two questions. The first one is if I have an address of this format: “1654 Beltline Road SW, Decatur, AL 35601, US” and I want to remove the ending part like the output I want is: “1654 Beltline Road SW, Decatur, AL 35601”. I want to remove the ending part. Can someone help me with some efficient way to remove this part?
Second one. If I am receiving a date and time like “4/29/2023 8:00 AM”. Now what I want is hours between the current date and time minus the time that is in the string. I want the time in hours. Can someone help me with this too?