Is it possible to set a time range between which entries in a table can be made?

I am making an app which is time based, only between a time limit user can make entry in database.

If i handle it in by java in application the user can change the device time and backdate entries can be made.

Help me a beginner…

Hello!

First off all, you can add a “beforeCreate” event handler. Inside it you can check the current date and if doesn’t match allowed range - reject the request. Here is a link to quick-start tutorial for this feature: https://backendless.com/getting-started-with-custom-business-logic-mbaas-server-code/
Second: each created object has “created” field of date type. This field contains creation date of the object and it cannot be updated. Device local time doesn’t matter - this field it set based on server time.
regards,
Alex

how i will get the the current time, if i make a Date current = new Date(); will i get the server time with my timezone because the created timestamp gives date time according to timezone.

Sorry Alex i am 2nd YEAR Engineering Student from India, very new to Cloud Application Developement and android…

You’re right, the code snippet you’ve provided returns current date in UTC. Time saved on server is also in UTC, and if you get any object the date inside it would be in timestamp format.

Unfortunately, we cannot help you in studying android/java basics, however, Backendless has an easy-to-learn API. The questions you ask are not related to our API.
Anyway, I’d offer you to start with reading our docs and make a few tries according to them using a simple “public static void main(String[] args)” method. Just add backendless.jar to your project and make a few simple calls to your app. Debug it, investigate and understand responses.
I wish you good luck and happy coding)
regards,
Alex

THanks