The irony that you've posted this dated 30th June...
Posting some sample code or something might help, and in a specific language
group.
But it sounds like you need some kind of validation function like
(psuedocode, and I'm a C++ programmer so forgive any oddities [oh , and I've
been awake for 36 hours so forgive any glaring errors :-) ] )
Boolean AllowBooking( DateTime dateTime )
{
// Check that the hour is before 11 or the booking date isn't tomorrow.
Some adjustment needed to prevent booking for today.
return ( TodaysDate.Time.Hour < 11 || ( todaysDate.Date.Day + 1 !=
dateTime.Date.Day ) );
}
HTH,
Steve
"bredal Jensen" <br******@jensen.dk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hello gurus,
I'm building a small booking system and i have come accross quiet a
tedious pitfall.
"I need to make sure that people do not book for tomorrow when todays time
is greater or equal to 11."
Well some of you probably allready know the answer but this is not so
obvious for me.
Can anyone solve this puzzle for me?
The booking hour is of no importance. Only the hour at which we are making
this booking
and only if it is the day after today.
Many thanks in advance
J.B