public static String formatDateTime(CmsObject cms, long date) {

        return CmsDateUtil.getDateTime(
            new Date(date),
            DateFormat.MEDIUM,
            OpenCms.getWorkplaceManager().getWorkplaceLocale(cms));
    }
public static String formatDateTime ( CmsObject cms , long date ) { return CmsDateUtil . getDateTime ( new Date ( date ) , DateFormat . MEDIUM , OpenCms . getWorkplaceManager ( ) . getWorkplaceLocale ( cms ) ) ; }
Formats a date given the current user's workplace locale.<p>

@param cms the current CMS context
@param date the date to format

@return the formatted date