Format of date
Submitted by Monday, 26 January, 2004 - 12:26
on
Hey all,
Trying to customize the stock Insert_Date.bsh macro to use the format I want but can't get it to work. So I tried this, and it didn't work either. What am I doing wrong?
Date today; String output; SimpleDateFormat formatter; formatter = new SimpleDateFormat("E, M d, y - h :m a", currentLocale); today = new Date(); output = formatter.format(today); // inserting date and internet time to textarea textArea.setSelectedText(ouput);Thanks in advance