-3

Pls Help me! im NOOB still studying, I want to make a module that when you enter the unavailable time or the time that you enter hits the unavailable time, it will shows an error an if you enter available time of a user it will send to the database

Mel
  • 1
  • 2
  • 1
    Welcome to Stack Overflow! You can take the [tour] first and learn about how to [ask] a good question. We generally help with code that has already been written – Katie Sep 20 '16 at 11:30

1 Answers1

0

If I understand your question, in html if you are using tag "input", exists type like datetime-local, that don't allow the user write a unavailable datetime. In the database is the same thing, you can use in your table/columns the type datetime. But be carefull, you have to send the database a datetime, that allows the database store the information. Like this if you database only allows like this "2012-11-23 17:06:06" is has to be like this, if not it will be not store

Adriano Maia
  • 103
  • 6