Groovy Documentation

org.grails.databinding.converters
[Groovy] Class DateConversionHelper

java.lang.Object
  org.grails.databinding.converters.DateConversionHelper
All Implemented Interfaces:
ValueConverter

@groovy.transform.CompileStatic
class DateConversionHelper
extends java.lang.Object

Authors:
Jeff Brown
Since:
2.3


Property Summary
java.util.List formatStrings

A List of String which represent date formats compatible with java.text.SimpleDateFormat.

 
Method Summary
boolean canConvert(java.lang.Object value)

java.lang.Object convert(java.lang.Object value)

java.lang.Class getTargetType()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

formatStrings

java.util.List formatStrings
A List of String which represent date formats compatible with java.text.SimpleDateFormat. When This converter attempts to convert a String to a Date, these formats will be tried in the order in which they appear in the List.


 
Method Detail

canConvert

boolean canConvert(java.lang.Object value)


convert

java.lang.Object convert(java.lang.Object value)


getTargetType

java.lang.Class getTargetType()


 

Groovy Documentation