I have two separate fields Date and Time fields. I would like to convert these fields into seconds format.
I am using this seonds format to make google API call.
https://maps.googleapis.com/maps/api/directions/json?
origin=Brooklyn&destination=Queens
&departure_time=1343641500&mode=transit
&key=YOUR_API_KEY
Field1: Date: 2/18/2020 Field2: Time: 9.00 AM
Expected: Field3: Seconds: 1582078857 or possible with Apex itself?
And also is there a way we can preserve same time for any timezone user?