Here you can find the source of textToMMDDYYYY(String pdata)
Parameter | Description |
---|---|
String | - Data DD/MM/YYYY |
public final static String textToMMDDYYYY(String pdata)
//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; } }