class method ActiveSupport.dateFormat
ActiveSupport.dateFormat(format) → String
ActiveSupport.dateFormat(date,format[,convert_to_local_time = false]) → String
- date (Date): If no date is passed the current Date will be used.
- format (String): test
- convert_to_local_time (Boolean): test
See: http://blog.stevenlevithan.com/archives/date-time-format
If convert_to_local_time is true the Date object will be assume to be GMT and be converted from GMT to the local time. Local time will be the local time of the server if running server side, or local time of the client side if running in the browser.
ActiveSupport.dateFormat('yyyy-mm-dd HH:MM:ss');
ActiveSupport.dateFormat(new Date(),'yyyy-mm-dd HH:MM:ss');


