require 'date'
Date.new(2001,2,25) #=> #<Date: 2001-02-25
Date.jd(2451966) #=> #<Date: 2001-02-25
Date.ordinal(2001,56) #=> #<Date: 2001-02-25
Date.commercial(2001,8,7) #=> #<Date: 2001-02-25
Date.parse('2001-02-25') #=> #<Date: 2001-02-25
Date.strptime('25-02-2001', '%d-%m-%Y') #=> #<Date: 2001-02-25
Time.new(2001,2,25).to_date #=> #<Date: 2001-02-25
Code Example |
---|
Ruby :: how to link to with font awesome rails |
Ruby :: ruby write csv file |
Ruby :: rails activerecord to hash |
Ruby :: for loop ruby |
Ruby :: ruby not include |
Ruby :: singleton class in ruby |
Ruby :: increment in ruby |
Ruby :: rails route list |
Ruby :: ruby debugger |
Ruby :: link to do rails |
Ruby :: ruby hash delete |
Ruby :: create_enum in rails 7 |
Ruby :: read headers of csv using ruby |
Ruby :: ruby remove value from array |
Ruby :: ruby number of week |
Ruby :: uninstall ruby windows |
Ruby :: ruby shorthand if |
Ruby :: rails sendgrid setup |
Ruby :: ide for ruby |
Ruby :: dig method in ruby How to check whether a nested hash element exists |
Ruby :: EOFError: end of file reached |
Ruby :: ruby null |
Ruby :: rails order nil last |
Ruby :: csv file current row number ruby |
Ruby :: find records using the IN expression in Rails |
Ruby :: ruby extract elements from array |
R :: r sort character number |
R :: knnImputation in r |
R :: variable assignment in r |
R :: comment in r |