DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.