I have an input box where the user can enter a string date, for example today or tomorrow. But now the next problem has arrived: 3 march or 8 january.
The input box has a dropdown menu, when the user types: "tod" => today, "jan" => "january" etc, when the user selects the dropdown item it will insert the text for them, however now the following question:
3 januari, or 03 januari, or 3 januari, as you can see it requires some regex, to check whether the first part was numeric? and then a space comes (for x amount of times since we cannot rely on users :P) and then the name of the month?
How can I do this?
Thanks for help already.