title: Prevent inserting data to Firebase after cutoff date in Flutter app
body: <p>In my flutter application I want to prevent users to enter their nominations after the cutoff date. </p>
  
  <p>For example, there is an exam nomination with cutoff date 31st March 2020. I am inserting the nomination data from my flutter app to the Firebase database. In app I'm checking the current date should be before the 31st March and then only allow to enter the data. However if the user changes the mobile data to backward the the app will allow to enter the nominations for the exam.</p>
  
  <p>I know if I write the Firebase Cloud Function and move my insert code there it will solve the issue. But I have lot of code that I will have to rewrite :-(. Is there any other solution that will allow me to know the actual current date? What if the internet is off?</p>
  
  <p>Thanking you in advance</p>