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
Gulshan__cGulshan__c 

How to add date from custom date field in Todays date

Hi,
I am fetching date using TODAY() function.Now i want to add another date in todays date.I am fetching the custom date from my custom object field.all this i need on VF page.

im using {!Today()} ---------------->for fetching todays date
{!obj.Custom_date} ---------------->Custom date

im trying to add like 
{!TODAY()}+{!obj.Custom_date__c}

Output receiving is as below

 2/8/2016+10/31/2015 2:59 PM




 
salesforce mesalesforce me
hi check this once............


Date_Time_c - DATETIMEVALUE( "2013-08-01 12:00:00" )
 
Gulshan__cGulshan__c
Thank you for your quick reply..But i have two dates available on my vf page i just want to add them like this ---------->
{!TODAY()}+{!obj.Custom_date__c}
Gulshan__cGulshan__c
Hi Got the answer....posting here to refer others

{!(today()+obj.Custom_date__c)}

today() -------------->gives me todays date
obj__c.Custom_date__c-------------->My custom field which gives me number of days to add in todays date