rails change date format

# Step 1: Require the date library
require 'date'

# Step 2: Define a variable with a date string
date_string = '2023-12-04'

# Step 3: Parse the date string into a Date object
date_object = Date.parse(date_string)

# Step 4: Format the date object into the desired format
formatted_date = date_object.strftime('%A, %B %d, %Y')

# Step 5: Print or use the formatted date
puts formatted_date