Exclude Time from CSV Output

32 views
Skip to first unread message

Bassel Massamiri

unread,
Sep 23, 2025, 10:23:40 AM (3 days ago) Sep 23
to GAM for Google Workspace
Hi,

Is there anyway to exclude time from CSV or todrive output 

2024-07-24T17:00:45Z , I need to remove T17:00:45Z

Thanks,

Ross Scroggs

unread,
Sep 23, 2025, 11:21:28 AM (3 days ago) Sep 23
to google-ap...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/633f9ace-7418-43c8-9a9f-d1751998de74n%40googlegroups.com.

Bassel Massamiri

unread,
Sep 23, 2025, 11:29:00 AM (3 days ago) Sep 23
to google-ap...@googlegroups.com
Hi Ross,

The tdtimestamp off didn't work

Here is my Command:

gam config num_threads 20 never_time "1970-01-01T00:00:00Z" csv_output_row_drop_filter "'lastLoginTime:date>=-90d','creationTime:date>=-60d','Groups:regex:<Group email>'" ous "'Ou1','Ou2'" print users fields creationTime,lastlogintime,orgUnitPath,relations groups todrive tdtimestamp off

The output still date and time : 

image.png

Thanks

Ross Scroggs

unread,
Sep 23, 2025, 11:34:00 AM (3 days ago) Sep 23
to google-ap...@googlegroups.com
I thought you wanted to remove the timestamp from the file name.


Scroll down to output_timeformat
gam config num_threads 20 output_timeformat "%Y-%m-%d" never_time "1970-01-01T00:00:00Z" csv_output_row_drop_filter "'lastLoginTime:date>=-90d','creationTime:date>=-60d','Groups:regex:<Group email>'" ous "'Ou1','Ou2'" print users fields creationTime,lastlogintime,orgUnitPath,relations groups todrive 

Ross
----
Ross Scroggs


On Sep 23, 2025, at 8:28 AM, Bassel Massamiri <bassel.m...@cogeco.com> wrote:

Hi Ross,

The tdtimestamp off didn't work

Here is my Command:

gam config num_threads 20 never_time "1970-01-01T00:00:00Z" csv_output_row_drop_filter "'lastLoginTime:date>=-90d','creationTime:date>=-60d','Groups:regex:<Group email>'" ous "'Ou1','Ou2'" print users fields creationTime,lastlogintime,orgUnitPath,relations groups todrive tdtimestamp off

The output still date and time : 

<image.png>

Thanks

Bassel Massamiri

unread,
Sep 23, 2025, 11:38:16 AM (3 days ago) Sep 23
to google-ap...@googlegroups.com
Thanks Ross , This works perfectly

Reply all
Reply to author
Forward
0 new messages