---
title: "Discussion on \"How to use ControlValueAccessor to enhance date input with automatic conversion and validation\" | Hashnode"
description: "Discussion on \"How to use ControlValueAccessor to enhance date input with automatic conversion and validation\". In this article, we will learn how we can extend native date input through a directive so that it supports conversion of value and validation on value"
url: "https://hashnode.com/posts/how-to-use-controlvalueaccessor-to-enhance-date-input-with-automatic-conversion-and-validation/60b89fb7e7631679eb8dce06"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use ControlValueAccessor to enhance date input with automatic conversion and validation](https://shhdharmen.hashnode.dev/how-to-use-controlvalueaccessor-to-enhance-date-input-with-automatic-conversion-and-validation?utm_source=hashnode&utm_medium=feed)

In this article, we will learn how we can extend native date input through a directive so that it supports conversion of value and validation on value

Jun 3, 2021 · 6 min read · shhdharmen.hashnode.dev  
Updated Jun 5, 2021  
Read the article

-   [#angular](https://hashnode.com/tag/angular)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Dharmen Shah](https://hashnode.com/@shhdharmen)

@shhdharmen · Ahmedabad, GJ, IN

  
[View profile](https://hashnode.com/@shhdharmen)

Sr. Full-Stack Developer

I am a 👔👨🏻‍💻 Front-end Developer. I like to work on 💻 Web stuff (HTML, CSS, JS), 🅰️ Angular, ⚛️ React, 🖌️ Bootstrap. I also love 🤗 to contribute to 👐 Open-Source Projects and sometime ✒️ write 📜 articles.

## Responses 2

Markdown supported · ⌘↵ to post

[bellamy](https://hashnode.com/@bellamy112)

[Dec 1, 2021](https://hashnode.com/posts/how-to-use-controlvalueaccessor-to-enhance-date-input-with-automatic-conversion-and-validation/60b89fb7e7631679eb8dce06/comment/61a715754b0b9223386b8a74)

Super insightful! Knowing how to properly comment and document your code is a must-have skill when working in a team. [world of solitaire](https://worldofsolitaires.co/)

[Learn with HJ](https://hashnode.com/@hardeepjethwani)

[Jun 3, 2021](https://hashnode.com/posts/how-to-use-controlvalueaccessor-to-enhance-date-input-with-automatic-conversion-and-validation/60b89fb7e7631679eb8dce06/comment/60b8a66fd7e1e779f671b55c)

**Interesting** !!!
