Skip to content

Instantly share code, notes, and snippets.

@nobusue
Created October 10, 2010 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobusue/619111 to your computer and use it in GitHub Desktop.
Save nobusue/619111 to your computer and use it in GitHub Desktop.
// g100pon #74 日付の解析とフォーマット
def date = new Date().parse('yyyy/MM/dd HH:mm:ss', '2010/10/10 18:59:59')
assert date.class.name == 'java.util.Date'
assert date.format('yyyy/MM/dd HH:mm:ss') == '2010/10/10 18:59:59'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment