Hi.
I am creating a website where a user creates a piece of content, and when he submits it, he chooses when he wants it to be published. For this, I am using the DateTimePicker, which works fine, but I would like to make it so that the user can't select dates or times which have already passed, as it is what makes sense in this example. How can I do this?
Also, when I query my database to show the contents which have been published, I also want to compare the publish date with the date of today to know if I should show that content or not.
Any ideas?
Thanks,
Marta
I am creating a website where a user creates a piece of content, and when he submits it, he chooses when he wants it to be published. For this, I am using the DateTimePicker, which works fine, but I would like to make it so that the user can't select dates or times which have already passed, as it is what makes sense in this example. How can I do this?
Also, when I query my database to show the contents which have been published, I also want to compare the publish date with the date of today to know if I should show that content or not.
Any ideas?
Thanks,
Marta