Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Posted

I am creating a C# program to fetch the "Last Boot Uptime" for all devices under a particular group with /v3/assets

But the time format is inconsistent for some devices. Some are in 24hr format others in 12hr format, some has the weekday on it etc.. 

Eg:

15 February 2024 21:58
22 February 2024 08:57
12 March 2024 08:24
18 March 2024 01:33
17 February 2024 02:11
15 February 2024 21:50
11 March 2024 15:08
17 February 2024 02:44
29 February 2024 00:36
16 March 2024 00:33
16 March 2024 01:29
06 February 2024 15:24
13 March 2024 08:46
Saturday, 2 March 2024 10:12 a.m.
Thursday, 14 March 2024 1:36 AM
Saturday, February 24, 2024 20:02
Thursday, 14 March 2024 11:08 pm

Most of the result are in dd MMMM yyyy HH:mm format.

Except once pc all others are windows. I checked the datetime format in windows for two PC's that had different boot up time format in REST API result but both windows time formats were same.

How to get a unified time format as the API result ? 

 

 

Featured Replies

  • Administrators

Hey @JpBIT

Thanks for reaching out, Could you please share with me your code and the format you get when you run the code on the the machine?

Thanks a mill
Stefan 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.