I have to save the date and time of booking in the database after the successful booking. I have tried like the following

```
if(bookingSuccess){
DateTime bookingDate = new DateTime ();
storeDate(bookingDate );
} 

storeDate(DateTime date){

....

}

```

but it wont work if the server is in one location and the client is in another location. Please suggest any solution for this.