This is my HTML:
<input [(ngModel)]="ask.start" type="number" min="0"/>
I need to use type="number"
because user will have a question like
"In how many days do you want to see this"
then comes the input
.
the [(ngModel)]
value is number of days. I need to convert it to milliseconds somehow, so I can get the milliseconds value and store it.
EDIT: the formula for 1 day in ms is 24 * 60 * 60 * 1000
How can I do this? I've been loosing my mind over this for days now.
Thanks.