You need to sign in to do that
Don't have an account?
k practice
URGENT:How to display date as below Format?
Hi,
Mu date is Date startdate="09/22/2015";
How to display This date as O/p:-2015-09-22
please help me...
Mu date is Date startdate="09/22/2015";
How to display This date as O/p:-2015-09-22
please help me...
You can format your date on VF page using outputText tag. For Example:
Please mark it as best if this helps you.
Regards,
Grazitti Team
www.grazitti.com
help me..
You have a variable in which date is stored for example that variable name is Date_To_Display. Use the following code on the VF page where you want to show the date in particular format. Just replace the variable with your own variable.
Regards,
Grazitti Team
www.grazitti.com
I don't want to display in an visualforce page .I want chanhe format using apex and pass through URL?
Sample code for apex format is:
Datetime myDT = Datetime.now();
String myDate = myDT.format('yyyy-mm-dd');
system.debug(mydate);
Regards,
Grazitti Team
www.grazitti.com
Convert your date to datetime. For this refer to the following link:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008kuMIAQ
Regards,
Grazitti Team
www.grazitti.com