Time and Date Selection for Booking

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1217
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1046
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    823
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Time and Date Selection for Booking

Time and date selection is two-step UI: first date in calendar, then available time slots. Key requirements: display only actually free time, real-time updates during concurrent bookings, correct timezone handling.

Time Slots

function TimeSlotPicker({ resourceId, date, onSelect }: Props) {
  const { data: slots, isLoading } = useQuery({
    queryKey: ['slots', resourceId, format(date, 'yyyy-MM-dd')],
    queryFn:  () => fetchTimeSlots(resourceId, date),
  });

  if (isLoading) return <SlotsSkeleton />;

  const grouped = groupBy(slots, slot =>
    slot.datetime.getHours() < 13 ? 'morning' : 'afternoon'
  );

  return (
    <div className="space-y-4">
      {grouped.morning && (
        <div>
          <p className="text-sm text-gray-500 mb-2">Morning</p>
          <div className="grid grid-cols-4 gap-2">
            {grouped.morning.map(slot => (
              <button
                key={slot.id}
                disabled={!slot.available}
                onClick={() => onSelect(slot)}
                className={cn(
                  'py-2 rounded-lg text-sm border transition',
                  slot.available
                    ? 'border-blue-200 hover:bg-blue-50 hover:border-blue-500'
                    : 'border-gray-100 text-gray-300 cursor-not-allowed'
                )}
              >
                {format(slot.datetime, 'HH:mm')}
              </button>
            ))}
          </div>
        </div>
      )}
    </div>
  );
}

Timezones

Server stores time in UTC. Client displays in user's local time:

// Convert server UTC to user's local time
const localSlot = utcToZonedTime(slot.datetime_utc, userTimezone);
const displayTime = format(localSlot, 'HH:mm', { timeZone: userTimezone });

For multi-regional services — explicit timezone selection by client.

Double-Booking Protection

Pessimistic locking: slot temporarily reserved for 10 minutes during booking attempt, released on cancel or process completion.

Implementation time: 2–3 working days.