Read my free-form date
91 89 91 56 bytes
Try it online!
Takes input as a string. Uses a
-replace to get rid of junk, then uses the built-in
Get-Date command with the
-format flag to specify the required
yyyy/MM/dd format. That string is left on the pipeline and output is implicit.
Saved two bytes thanks to Mr Xcoder. Saved a huge chunk thanks to TessellatingHeckler's regex golfing.
73 164+1 bytes
Run as pipe with
-nR or try it online.
The date check was really expensive: I had to disassemble the date before using a builtin, then try and error on the month name.
41, 37 35 bytes
I don't know of an online interpreter for Rails, but here is a screenshot demonstrating this proc