You need to sign in to do that
Don't have an account?

Need apex code for date out put text in the format "15 mar 2010" in a visual force page.
Hi I need a apex code to display the date in the format "dd mmm yyyy" ( i.e . 15 mar 2010).
right now the fields are in the data type date format . that is standard format. but I need in the above format.
Please help .
Thanks.
How about this:
Try using format method for date formating in apex :
Datetime dt = system.today();
string dtFrmt = dt.format('dd MMM yyyy');
system.debug('$$$$$$$$$$' + dtFrmt);
Hope this helps.
niicee.. that worked a treat.
Thanks