Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- autocaluculation the number of days
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
autocalucu lation the number of days
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2013 02:31 AM
I need help autocaluculation the number of days Starting_Date__c is( Date datatype),Period__c is (Formula date datatype). I have created a contact I have given start as Starting_Date__c=1/21/201 its has to caluculte the period as Period__c=1/20/2013.Every months it has to change and it has to continue like this till the contact associated with my Account. ***I have got some code like this**where Month is Picklist Field that why i have used Text method here -------------------------------------------------- ------------------ DATE(year(Starting_Date__c)+ floor((month(Starting_Date__c) + TEXT(Months__c))/12) + if(and(month(Starting_Date__c)=12,TEXT(Months__c)> =12),-1,0) , if( mod( month(Starting_Date__c) + TEXT(Months__c), 12 ) = 0, 12 , mod( month(Starting_Date__c) + TEXT(Months__c) , 12 )) , min( day(Starting_Date__c), case( max( mod( month(Starting_Date__c) + TEXT(Months__c) , 12 ) , 1), 9,30, 4,30, 6,30, 11,30, 2,28, 31 ) ) ) --------------------------------------------- When i have used this code in the Period Formula field....Its showing an error message on that field(Error: Incorrect parameter type for operator '+'. Expected Number, Date, DateTime, received Text)
0
Re: autocalucu lation the number of days
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2013 04:47 AM
Hi
I think ur adding the picklist value to the start date.
use Value(text(Starting_Date__c) in your formula.
for more info check this:-
Thanks
Anil.B
Anil.B
0
How to convert the number in Text
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-02-2013 05:28 AM
I have an Salary custom object.In that i have field called Netpaid:(Currency data type) My question is if Netpaid=4845 Its has to show in like this on my Vfpage(Amount inwords):Four Thousand Eight Hundred and Forty Five Rupees... More i want to convert it PDF... In pdf also it has to reflect

