Creating datetime in angular using api



I need to add a DateTime to an input using the api, not the mbsc-date component. How can I achieve this using the angular setup?


Hi Ulrik :wave:

I’m not sure that I entirely understand your question.
Would you like to initialize the Date & Time picker component in an external input instead of using the component? If yes then you can use the directive form. In this demo, you can find an example where it was initialized with a directive:
Let me know if this makes sense.