Skip to content

The open alternative to Salesforce, designed for AI.

213 B
Raw Blame
import { format } from 'date-fns';

export const validateCustomDateFormat = (formatString: string): boolean => {
  try {
    format(new Date(), formatString);
    return true;
  } catch {
    return false;
  }
};