Java Calendar Format formatarData(Calendar data)

Here you can find the source of formatarData(Calendar data)

Description

formatar Data

License

Open Source License

Declaration

public static String formatarData(Calendar data) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {
    private static DateFormat dataSimples = new SimpleDateFormat("dd/MM/yyyy");

    public static String formatarData(Calendar data) {
        return dataSimples.format(new Date(data.getTimeInMillis()));
    }/*from w ww  .  ja v a  2s  .  c o m*/
}

Related

  1. format(Calendar calendar, String formatString)
  2. format(Calendar calendar, String pattern)
  3. format(Calendar current)
  4. format(Calendar self, String pattern)
  5. format(final Calendar cal)
  6. formatCalendar(Calendar calendar)
  7. formatCalendar(Calendar calendar)
  8. formatCalendar(Calendar calendar)
  9. formatCalendar(Calendar calendar)