Open abitdodgy opened 11 years ago
@abitdodgy this particular case is not handled :) Care to give it a try in a PR?
Yea would like that too. Using that gem in like form-objects where the input is a string, the gem currently wont recognize a correct string representation of a date.
@txus Sorry, I missed your comment. I'll give this a bash, more than two years later :laughing:
@Skulli in case of usage Reform form objects it's possible to include Coercion module from virtus
gem to correctly handle string representation of a date.
@drakmail's approach appears to work nicely, for more details checkout the Reform docs. http://trailblazer.to/gems/reform/options.html#coercion
Is it possible to add a way just to check if a given string is a valid date?