I'm trying to save the user details using a date as a unqiue id. I'm displaying the date on top which Ii get from a calendar view on another page.
I was wondering if I can use the date as a unique id to save other data inside it, and also use it read it when the time comes.
Currently, to write the data I'm using this code:
String id =databaseWorkouts.push().getKey();Workout workout =newWorkout(id, name, category );databaseWorkouts.child(id).setValue(workout);