Creating datetime in angular using api


#1

Hi,

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?


#2

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: https://demo.mobiscroll.com/angular/datetime/app-website-usage.
Let me know if this makes sense.