Dell Warranty API Days Left...

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Dell Warranty API Days Left...

Post by jvierra »

Grev79 wrote: Warranty: 640.23:59:59.Days

Not to nitpick but is there a way to remove the hours, minutes and seconds so it only shows 640?

Grev(Aeo)
The code I posted does exactly that,
User avatar
Grev79
Posts: 7
Last visit: Fri Aug 12, 2016 8:27 am

Re: Dell Warranty API Days Left...

Post by Grev79 »

I fiddled with your code a bit and got it to work.

$(([datetime]$dell[1].EndDate - [datetime]::Today).Days) days remaining

Thank you again for your assistance. I am really enjoying PowerShell and PowerShell Studio. Just need to get the bossman to sign off on a full version. :)


Grev(Aeo)
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Dell Warranty API Days Left...

Post by jvierra »

Produce a couple of useful scripts and he will buy you a copy and the tutorials to go with it.
This topic is 7 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked