Ruby program to get the current weekday name using strftime() method

Today we are going to discuss this important topic via this article Ruby program to get the current weekday name using strftime() method. We hope you like this article.

Ruby program to get the current weekday name using strftime() method

Ruby program to get the current weekday name using strftime() method

# Ruby program to get the current weekday name 
# using strftime() method

time = Time.new();
weekday = time.strftime("%A");

print "Weekday is: ",weekday;
Weekday is: Thursday

Final Words

Ruby program to get the current weekday name using strftime() method We learned about this very clearly through this article. And if you liked this article please share it with your friend.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Deekshi. Here, I post about programming to help developers.

Share on:

Leave a Comment