In one of my projects, I want to store application start time and end time to GCP Firestore in timestamp format.
I have tried the following things
I tried to save the java DateTime but in the Firestore its storing as array(Firestore screenshot).
and also I tried to use the FieldValue but it's storing start time and end time as the same.
is there any way I can store time stamp in GCP Firestore with the actual time difference(application start time and end time)
I am storing the below model class by updating the completeAt and startedAt fields(note: I have tried with type FieldValue as well instead of Date).
public class Test{
private Date completeAt
private Date completeAt
}