You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Sorry for the (very) late answer. The display is correct (only year - month - day), but the value has hours. You get the hours because of the timezone of the calendar instance and because of the milliseconds. I added some hint in the doc and examples (see : e570f44). Here is the relevant part:
// A date with the standard format.
// Warning : you probably want to set milliseconds to 0 and use correct time zone
final Calendar cal = GregorianCalendar.getInstance(TimeZone.getTimeZone("UTC"));
cal.set(Calendar.MILLISECOND, 0);
cal.set(2018, Calendar.FEBRUARY, 1, 0, 0, 0);
Still getting the same issue, showing date with time like 01/14/2024 09:00:00/ 01/01/2018 09:00:00
and how can we show only date instead of time
cal.set(2017, 12, 1, 0, 0, 0);
walker.setDateValue(cal);
// Add a custom format
final DataStyle dateStyle = new DateStyleBuilder("custom-date-datastyle", Locale.US)
.dateFormat(
new DateTimeStyleFormat(DateTimeStyleFormat.DAY, DateTimeStyleFormat.DOT,
DateTimeStyleFormat.MONTH, DateTimeStyleFormat.DOT,
DateTimeStyleFormat.YEAR)).visible().build();
walker.setDataStyle(dateStyle);
walker.next();
The text was updated successfully, but these errors were encountered: