DEV Community

Cover image for Ruby gem for finding weekday of a date
Sourav das
Sourav das

Posted on • Updated on

Ruby gem for finding weekday of a date

I have created my first ruby gem named DayFinder

This gem is useful if you want to find the weekday of given date

Example:-

require 'DayFinder'
day=DayFinder.find 15,8,1947
puts day
#output
# Friday

Enter fullscreen mode Exit fullscreen mode

You have to provide the date as d-m-Y format.
So do you want to give it a try ?
Install and try now

Installation

gem 'DayFinder'
Enter fullscreen mode Exit fullscreen mode

And then execute:

$ bundle install
Enter fullscreen mode Exit fullscreen mode

Or install it yourself as:

$ gem install DayFinder
Enter fullscreen mode Exit fullscreen mode

The Github Repo:https://github.com/freakflames29/DayFinder
Rubgems.org:- https://rubygems.org/gems/DayFinder

Top comments (0)