Ruby: convert string to date April 11, 2023 by Tarik You could also use Date.strptime: Date.strptime("{ 2009, 4, 15 }", "{ %Y, %m, %d }")