com.vaadin.client.ui.calendar.schedule.

Class DateUtil


  • public class DateUtil
    extends Object

    Utility class for Date operations

    Since:

    7.1

    Author:

    Vaadin Ltd.

    • Constructor Detail

      • DateUtil

        public DateUtil()
    • Method Detail

      • compareDate

        public static boolean compareDate(Date date1,
                                          Date date2)

        Checks if dates are same day without checking datetimes.

        Parameters:

        date1 -

        date2 -

        Returns:

      • formatClientSideDate

        public static String formatClientSideDate(Date date)

        Parameters:

        date - the date to format

        Returns:

        given Date as String, for communicating to server-side

      • formatClientSideTime

        public static String formatClientSideTime(Date date)

        Parameters:

        date - the date to format

        Returns:

        given Date as String, for communicating to server-side