How to add sql query varible into javascript and calculate?

Solution 1
var birthdate = $("#birth").val();
var birthdate = "{{ birth }}"

    

    


{{ patient.birth }}
Solution 2
const date = new Date("3 1930");