Package org.auraframework.util.date

Examples of org.auraframework.util.date.DateService


    @AuraEnabled
    public String getDateTimeISOString() {
        Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.US);
        c.set(2004, 9, 23, 16, 30, 0);
        c.set(Calendar.MILLISECOND, 0);
        DateService dateService = DateServiceImpl.get();
        return dateService.getDateTimeISO8601Converter().format(c.getTime());
    }
View Full Code Here


    @Override
    public DateOnly convert(String value) {
        if (value == null || value.isEmpty()) {
            return null;
        }
        DateService dateService = DateServiceImpl.get();
        Date d = dateService.getGenericISO8601Converter().parse(value);
        return d == null ? null : new DateOnly(d.getTime());
    }
View Full Code Here

    @Override
    public String convert(Date value) {
        if (value == null) {
            return null;
        }
        DateService dateService = DateServiceImpl.get();
        return dateService.getDateTimeISO8601Converter().format(value);
    }
View Full Code Here

    @AuraEnabled
    public String getDateTimeISOString() {
        Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.US);
        c.set(2004, 9, 23, 16, 30, 0);
        c.set(Calendar.MILLISECOND, 0);
        DateService dateService = DateServiceImpl.get();
        return dateService.getDateTimeISO8601Converter().format(c.getTime());
    }
View Full Code Here

TOP

Related Classes of org.auraframework.util.date.DateService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.