I have an entity at my java backend which has a joda DateTime
field called createdAt.
I have a post API to update these values on the Database.
The post API accepts application/json values
.
I have an use case where in i need to make a Ajax POST request from my javascript file that updates the entity with the current date.
Now that i need to pass a DateTime value in the POST data, i face a problem in converting the javascript Date object
into joda DateTime
.
I have tried sending the javascript Date object but it responds as :
Also Note: I cannot perform any actions on the data i receive from javascript before sending it to the repository on the java side.