[CustomMasks] Force daypart of the date to a value

[CustomMasks] Force daypart of the date to a value

  
Forge Component
(17)
Published on 23 Sep by Pedro Oliveira
17 votes
Published on 23 Sep by Pedro Oliveira
Hello,

have anyone figured out a solution to force the daypart of a date to not be editable? Like for example to be displayed like this: "01-mm-yyyy", and then the user can only change the month and year part.

Best Regards,
Hugo Pinheiro
Hello Hugo,

I'm not sure about what is your use case, but I'm not seeing a way to do that.
I would suggest you to try to have an input for each date field, in that way you could put the day no editable. I think it would also be weird for a user while writing on the input, just having some part of it editable.

Cheers,