Android Open Source - TrackEveryPenny Date Csv Format

From Project

Back to project page TrackEveryPenny.


The source code is released under:

Apache License

If you think the Android project TrackEveryPenny listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ca.jbrains.upfp.view;
/*from  w  w w. j a v a  2 s.  co  m*/
import ca.jbrains.upfp.view.CsvFormat;
import org.joda.time.LocalDate;
import org.joda.time.format.*;

public class DateCsvFormat implements CsvFormat<LocalDate> {
  public static final DateTimeFormatter ISO_FORMAT
      = DateTimeFormat.forPattern("yyyy-MM-dd");

  public String format(LocalDate date) {
    return ISO_FORMAT.print(date);

Java Source Code List