Revision 1996
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToString.java | ||
---|---|---|
40 | 40 |
try { |
41 | 41 |
if (value instanceof Date) { |
42 | 42 |
Locale locale = Locale.getDefault(); |
43 |
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale);
|
|
43 |
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.LONG, locale);
|
|
44 | 44 |
value = df.format(value); |
45 | 45 |
} else if (!(value instanceof String)) { |
46 | 46 |
value = value.toString(); |
... | ... | |
62 | 62 |
if (locale == null) { |
63 | 63 |
locale = Locale.getDefault(); |
64 | 64 |
} |
65 |
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale);
|
|
65 |
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.LONG, locale);
|
|
66 | 66 |
value = df.format(value); |
67 | 67 |
} else if (!(value instanceof String)) { |
68 | 68 |
if (value instanceof Float || value instanceof Double) { |
Also available in: Unified diff