You need to sign in to do that
Don't have an account?
anvesh@force.com
Need to display current date on a field?
I want to display current date on a field. i have writtened in formulae editor
System.datetime.now
which results error and i have tried
$System.OriginDateTime. but even getting wrong date.
System.datetime.now
which results error and i have tried
$System.OriginDateTime. but even getting wrong date.
Hi Anvesh,
System.now() would give you the current date and time.
See the links below,
http://boards.developerforce.com/t5/Apex-Code-Development/Is-there-any-way-to-get-current-date-and-time-as-per-the-logged/td-p/89306
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_datetime.htm
Regards,
Ashish
Where are you doing this? If it is on a formula field, workflow field update, etc. then you can use "NOW()", which will give you the user local time.
Hi Anvesh,
1.To Show Current Date on your field add this function in your Formula Editior --> NOW() , Please make sure that that field type is Date
2. If you wrote this in your Text field use this function in your Formula Editior --> TEXT(NOW() )
Hope this will helpful for you...!
In my case I use it in creating a file name for a Conga report: &OFN=MyReport+{!Today}
This needs to be answered for 2021 using Flow. In Flow, use the {!$Flow.CurrentDateTime} ($Flow | CurrentDateTime).
Troy ~ Seattle