Java Text Parse textToMMDDYYYY(String pdata)

Here you can find the source of textToMMDDYYYY(String pdata)

Description

Converte a data para MM/DD/YYYY

License

LGPL

Parameter

Parameter Description
String - Data DD/MM/YYYY

Return

Sting - Data MM/DD/YYYY

Declaration

public final static String textToMMDDYYYY(String pdata) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    /**/*from w  ww  .  j a  v a 2  s  .  com*/
     * Converte a data para MM/DD/YYYY
     * 
     * @param String
     *            - Data DD/MM/YYYY
     * @return Sting - Data MM/DD/YYYY
     */
    public final static String textToMMDDYYYY(String pdata) {
        String aux = "";
        if (!pdata.equals("__/__/____") && !pdata.equals(""))
            aux = pdata.substring(3, 5) + "/" + pdata.substring(0, 2) + "/" + pdata.substring(6);
        return aux;
    }
}

Related

  1. textToByte(char[] text)
  2. textToBytes(String text)
  3. textToCDATA(String text)
  4. textToInteger(String filename, String text, String name)
  5. textToInteger(String text)
  6. textToNumericFormat(String src)
  7. textToNumericFormatV4(String host)
  8. textToNumericFormatV4(String ipString)
  9. textToNumericFormatV4(String src)