function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
certi_vimalcerti_vimal 

Fields with mm/dd and yyyy formats

Hi,

I have 2 fields:

Annual Date : mm/dd format field

Last Quoted by Year :  yyyy format field

How can I map these fields in Salesforce given that we dont have these formats defined?

Thanks,

Vimal

kwukwu

If you want to show a specific format on a detail view, you can use a formula field to output your specific format. So you'll need two custom fields. One that is a date field and one that is a formula field. You can hide the date field in your page layout.


MONTH()

DAY()

YEAR()

etc.

 

See here: http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_variables_functions.htm?SearchType=Stem

 

If you want to show a specific format on an apex page, you can use this visualforce component: http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_compref_outputText.htm?SearchType=Stem

See the example.