Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Java udf for deliveryd date

$
0
0

Hi,

 

You need to import below for this UDF( Execution Type: All Values of queue)

 

import java.text.SimpleDateFormat;

import java.util.Date;

 

 

 

 

SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");

Date Stt = dateFormat.parse("00/00/0000");

for(int i =0;i<var1.length;i++)

{

   

Date TaskDate = dateFormat.parse(var1[i]);

 

    if(TaskDate.after(Stt))

    Stt = TaskDate;

   

}

result.addValue(Stt);

    }

}


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>