How to Get Deadline based on date

I have two properties Appointment date and Appointment Deadline based on Appointment date Deadline should be on the same day end i mean if appointment is on 9-11-2022 8:00Am Deadline should be 9-11-2022 6:00pm

if appointment is on 13-12-2022 3:00pm

Deadline should be 13-12-2022 6:00pm

how can i do this

@Dhathrig

Substring date part from the appointment date property and hardcode 6 pm for the time part to set it in the appointment date Deadline property.

@RohitS3082 Can u help me how to do that

@Dhathrig

Try to use the substring to get only the date and to the final result manually hardcore the value 6PM

Thanks

@AkshithReddyT The result is string but I want Date time format

@Dhathrig Try setting it up to datetime property..! (Step-3)