1 month ago

Best way to get datetime-local current time...

Posted 1 month ago by ollie_123

Hi All

I'm working on an app that has a datetime-local input and i'm trying to work out the best way to get the current date & time and to format it as eg 2020-09-20T21:00.

If its not formatted this way, i cant submit the form and it keeps bouncing me back to input a date as it doesn't recognise the date inputted from the datetime-local field.

Any advice would be greatly appreciated.

Thanks in advance.

Please sign in or create an account to participate in this conversation.