S
Steve McLellan
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
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