cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Friends,

Can anyone please provide me the UDF for the following case.I need my output file name in following format

156WE_YYYYmmddHHMMSS.xml

Thanks for quick help..

Regards,

Dinesh

0 Likes
View Entire Topic
DG
Active Contributor
0 Likes

It is farily simple using the following imports

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

 
		    Date now = new Date();  
		    DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SS:SZ");  
		    String date = df.format(now);

You can change the date parameters, search for simpledateformat.