I am creating a Spring Boot application and I have a timestamp variable in Firestore DB I want to send date in that field. How can I do that?
This is my service I am sending data to Firebase
    public Patient addPatient(Patient patients) throws InterruptedException, ExecutionException  {
    
    Firestore dbFirestore = FirestoreClient.getFirestore();
    ApiFuture<WriteResult> collectionApiResult = dbFirestore.collection(this.fireStoreCollection).document(patients.getUserId()).set(patients);
    return patients;
}



 
     
    