Skip to main content
I want to include a time stamp in a comment text field using a formula. I used the TEXT(Now()) which did the job of formatting the date just fine except the time stamp seems to be in a different time zone to mine. How can the Now() return the right time ?

 

it was 11h15 my time and I got this time stamp:  2015-04-02 03:15:03Z.

 

Also, as a side question... how can i add a carriage return in a text field using a formula"?
3 个回答
  1. 2015年4月2日 04:54
    Helene, I guess it is because the NOW() function always returns the date value in GMT.  One simple thing to do would be add a "GMT" suffix to your text. If that is not a suitable alternative, here is an elaborate formula to convert a Date/Time value to another timezone: https://help.salesforce.com/HTViewSolution?id=000181642

     

    By the way, if you are annoyed with the "Z" (which stands for zone) that gets appended at the end...  You could trim that out with the LEFT () function.

    LEFT(

      TEXT( NOW() ),

    LEN ( TEXT ( NOW() ) ) -1

    )

    + " GMT"

     

    As for the carriage return, try the BR() function. It inserts a line break in a string of text.
0/9000