require 'date' d1 = Date.new(y=2008,m=3,d=22) puts d1
output: 2008-03-22
11281 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
require 'date' d1 = Date.new(y=2008,m=3,d=22) puts d1
You need to create an account or log in to post comments to this site.