cancel
Showing results for 
Search instead for 
Did you mean: 

How do I remove a datetime stamp from a text file?

joseph_michaud
Moderator

Re: How do I remove a datetime stamp from a text file?

If you know that the timestamp is always the second element in the comma separated string, you can use JScript/JavaScript code directly.  The following example creates a new array with second element removed.

 

function tryme()
{
	var str = "aaa,bbb,ccc,ddd";
	var arr = str.split(",");
	Log.Message(arr);
	
	var arr2 = Array().concat(arr.slice(0, 1), arr.slice(2, arr.length));
	Log.Message(arr2);
} 
-----
Joseph
New Here?
Join us and watch the welcome video:
Announcements