cancel
Showing results for 
Search instead for 
Did you mean: 

OpsCenter custom report using query

Thiago_Pereira
Level 4

how do I convert the date fields in OpsCenter for the DATETIME format in a custom report using Query?

EXAMPLE:

SELECT startTime FROM domain_Job

This column is a timestamp format, how I convert? Its possible?

1 ACCEPTED SOLUTION

Accepted Solutions

SParashar
Level 4
Employee

Try this.

SELECT "DBA"."UTCBigintToUTCTime"(startTime) FROM domain_Job

View solution in original post

6 REPLIES 6

SParashar
Level 4
Employee

Try this.

SELECT "DBA"."UTCBigintToUTCTime"(startTime) FROM domain_Job

Thiago_Pereira
Level 4

Thank's SParashar

 

This solution will resolve me life but, you know how to change the format of date or is only possible in this way?

Like YYYYMMMDD HH:MM:SS

SParashar
Level 4
Employee

Which version of OpsCenter you are using.

I think the format should be based to the locale selected for the user. So for English locale the format should be MMM dd, YYYY HH:MM:SS. What is the Default locale selected under Settings/User Preferences.

Thiago_Pereira
Level 4

It worked as you described.

Thank's for help.

Thiago_Pereira
Level 4

Yes, like me default locale.

SParashar
Level 4
Employee

Is the data shown in the expected date format?