Answers for "rails timestamp format"

0

format date rails created long

active_record.created_at.to_formatted_s(:long)
Posted by: Guest on March-20-2021
0

date time string to time in rails

DateTime.parse("2022-01-07T00:50:49Z").strftime("%H:%M:%S")
Posted by: Guest on March-22-2022

Browse Popular Code Answers by Language