Java Date Format As formatDateForTAP(Date date)

Here you can find the source of formatDateForTAP(Date date)

Description

Utility class that help us to build date strings that can be used in TAP data provider

License

Open Source License

Parameter

Parameter Description
date Date object

Return

String representation

Declaration

public static String formatDateForTAP(Date date) 

Method Source Code

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

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

public class Main {
    /**//from   w w w.j a  v a2s . com
     * Utility class that help us to build date strings that can be used in TAP data provider
     * @param date Date object
     * @return String representation
     */
    public static String formatDateForTAP(Date date) {
        return new SimpleDateFormat("dd.MM.yyyy").format(date);
    }
}

Related

  1. formatDateDashes(Date oDate)
  2. formatDateDay(final Date date)
  3. formatDateForCompleteInfo(Date date)
  4. formatDateForGMT(Date moonDate)
  5. formatDateForLogFileName(Date date)
  6. formatDateForXpath(Date date)
  7. formatDateGMT(Date date)
  8. formatDateHeader(final Date date)
  9. formatDateHeader(final Date date)