text: const isSameDate = (d1, d2) => 
  d1.getFullYear() === d2.getFullYear() &&
  d1.getMonth() === d2.getMonth() &&
  d1.getDate() === d2.getDate()
  
  const getShortBlogPostCreationDate = (dateString) => {
    const currentDate = new Date();
    const date = new Date(dateString);
    // Default options
    const options = {  
      month: 'short', 
      day: 'numeric',
      year: 'numeric'
    };
    if (isSameDate(date, currentDate)) return 'Today';
  
  
    return date.toLocaleDateString('en', options);
  };
  
  const getBlogPostCreationDate = (dateString, options) => {
    if (options && options.isShort) return getShortBlogPostCreationDate(dateString);
    const date = new Date(dateString);
  
    return date.toLocaleDateString('en', {  
      month: 'long', 
      day: 'numeric',
      year: 'numeric',
    });
  }
  
  export default getBlogPostCreationDate;