date-formats library / gem - read / parse dates (and times) from around the world
Hello, I’ve put together a date-formats library / gem that lets you read / parse date (and times) from around the world. Let’s try a French date e.g. DateFormats.parse( 'Lundi 1 Janvier', lang: 'fr')
or a Spanish date e.g. DateFormats.parse( '1 Ene', lang: 'es' )
and so on. Happy date wrangling with ruby. Cheers. Prost. PS: Yes, you can add new (and more) formats using regular expressions / text patterns.
Post a comment