How to transform date string to be of Date class

Tags: #<Tag:0x00007efc64b2d3f8>

I am trying to use date cell type. I need for values to be of actual Date class. Also data used to potentially initialize table will be of Date type. Can I configure cell somehow to use Date class instead of strings? If not, how should I hook into HOT lifecycle to transparently transform data for particular column to date back and forth?

This is what my cell meta factory will return for date cells

  if (field.controlType === 'date') {
    return {
      type: 'date',
      dateFormat: WbDateAdapter.DATE_FORMAT,
      correctFormat: false,
    };
  }

Hi @sebastian.choina

I think what you want to do would be possible by creating a custom cell type:

https://handsontable.com/docs/cell-type/#registering-custom-cell-type