How to convert JavaScript Date to Java date-time with a time-zone?
<p>Is there a simple way to convert a <a href="https://www.w3schools.com/js/js_dates.asp" rel="nofollow noreferrer">JavaScript Date</a> to a Java 8 date-time with a time-zone?</p>

<p>I have a web application which consists of two parts, front end is written in JavaScript and the back end in Java. A user should be able to select a date-time in UI and the value should be consumed by the back end. What is the easiest way of converting this value to Java date-time?</p>