How to insert a current timestamp

    A quick and easy way to insert the current timestamp into a new or existing attribute is to do the following in the Transform operator:


    Create an expression rule that contains:




    The datetime.timestamp() returns the current timestamp and datetime.string() returns the string representation of that value. If you don't already have an output attribute, you'll want to add a new output attribute by first clicking the Add button on the ribbon.




    Note that the datetime.timestamp() function will may return a slightly different value from record to record as it gets invoked per record.  If you just want to capture the timestamp at time of dataflow execution, you could use this instead: