Skip to content

Instantly share code, notes, and snippets.

@IndianGuru
Created August 28, 2011 01:18
Show Gist options
  • Save IndianGuru/1176102 to your computer and use it in GitHub Desktop.
Save IndianGuru/1176102 to your computer and use it in GitHub Desktop.
JRuby program 3
require 'java'
#java_import 'java.util.Date'
java_import('java.util.Date') { |pkg,name| 'JDate' }
java_import 'java.text.DateFormat'
date = JDate.new
date_format = DateFormat.get_date_instance
date_us = date_format .format date
puts date_us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment