Help for a date and time string in the format of get-date
When you take a date / time string of an object:
The format of the entry is a string and get-date doesn't seem to be able to convert to the
a System.DateTime.
I want to compare this value to 30 days so there are get-date ((get-date).adddays(-30))
When I try the following, it seems to work then import it:
(get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))
If I add the following:
"[datetime]" (get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))
He can't convert it.
Without the datetime component, when I try a superior test uses only the date
the part as well:
$Test = '2009-10-06 00:00:00.
If ($Test - gt (get-date - UFormat "%T"("06/05/2010 00:00:00") %d/%m/%Y ""))
{
$Tested = 'Yes '.
}
On the other
{
$Tested = 'no '.
}
$tested
Results in a Yes tentatives being earlier.
In the script it returns all records where the date is after
as 05 and ignore the year, month, and time.
Any help with this would be greatly appreciated.
Thank you
This has to do with the 'culture' that you use in your PowerShell session.
You can use the Get-Culture cmdlet to see that one you use.
If you try
[datetime](get-date -UFormat "%m/%d/%Y %T"("30/06/2010 00:00:00"))
The parameter - UFormat produces a string and
the cast is expected default mm/dd/yyyy format, for the part of the date.
So, by reversing the month and day of your UFormat string - that has been corrected.
BTW, I have attached the line because the SW forum do not have hooks.
____________
Blog: LucD notes
Twitter: lucd22
Tags: VMware
Similar Questions
-
Is it possible to save the Office XP for multiple monitors and restore after using the laptop in mobile mode?
Hi Kenelms,
You can follow this link & check if it helps.
HOW to: Set up hardware profiles for laptop computers in Windows XP
Hope the helps of information.
Please post back and we do know.
-
I have an OEM of Windows Vista version on a dying computer. Can I buy the upgrade for Windows 8 and install it on the new PC, I'm building? The upgrade, is published at the same time as I'm rebuilding my PC. I'm just looking to replace my OS. I need Vista.
Hello
OEM license is tied to the first machine that is installed on the OEM license dies when this machine dies.
An OEM license is not transferable.
And you need a legal edition of Windows, enabled for upgrade.
There is no use, you buy a license upgrade of Windows 8 by itself as you have to upgrade anything of in the new computer, you build...
You can buy a license of Windows 8 when it comes out later this year.
See you soon.
-
I can't find the serial numbers for my CS3 and Photoshop CS5 on the page my Adobe products. I registered these past two years. Kenneth Robison
Contact adobe support by clicking on this link then "still need help" as soon as it appears, https://helpx.adobe.com/contact.html
-
I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game
Apple or App developers read this forum. If you want a refund, contact the developer to the email address. It is to them that they will refund your or not.
-
If I pay for an application and it does not work I would get my money back guarantee, please, thank you
This is a user to user forum. You don't talk to Apple.
You can report a problem with applications to http://reportaproblem.apple.com and request a refund as well.
-
I have House part for my iPhone and apple TV, but the iPhone libraries are not listed under computers on Apple TV. I don't see libraries for my Mac. I use the same identifier apple through the three devices. I have an iPhone 6 more working 9.0. The devices are all on the same home network running.
You can't share a library that is located on an iPhone, iPod or iPad with other devices. You can only share a library that is located on a Mac or a PC with other devices. On other devices, iPhone, iPod and iPad for example, you then activate home sharing to connect to the shared library.
-
Received an email asking for user information and password because of the DGTFX virus
Original title: DGTFX Virus
I received an email to this address * address email is removed from the privacy * asking for user information and password because of the virus of the DGTFX if I'm not so-called miscrosoft will terminate my account. Is it a scam? or legit?
Thank you
Eric Schnepf
It's a scam. Happy that you didn't fall for it.
http://www.Hoax-Slayer.com/dgtfx-virus-phishing-scam.shtml
http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx
-
I had purchase cc all apps for students / teacher and then I received the receipt e-mail.
But it is not activate the license and subscribe.
How can I activate it?
Check your account indicates the subscriptions that you expect (and that the adobe, used in the next step id is correct) by logging in here and checking the status of your subscription, https://www.adobe.com/account.html
then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-
I recently changed the laptops on my old laptop I downloaded after payment of the annual fee for her photoshop and lightroom. Since the evolution of the laptop when I connect it it says my trial has expired, but I paid and it won't let me download. Lightroom opens just enough to add a watermark and photoshop, not at all. I need to know how to download both I paid and that they were working on my other laptop
Check your account indicates the subscriptions that you expect (and that the adobe, used in the next step id is correct) by logging in here and checking the status of your subscription, https://www.adobe.com/account.html
then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-
When I opened Adode Acrobat, a grey area on the right said retrieve the State of the current session... its been like this for days now and it really slows the responsiveness of the software. How can I solve this? I paid for the Export Department in January 2014.
If this is still the case, I would recommend uninstalling and reinstalling the drive. You should not receive this message if you are logged out.
Best,
Sara
-
string in the format spreadsheet in table: Missing comma
Hi all
Plug-in function "string in the format spreadsheet en table" with LabVIEW 2014. I do not understand why, but the point numbers are truncated at the output of the function.
This is the VI as an attachment.
Thanks for your help!
Hello
The decimal separator of your OS comma an EST. So either you replace it with a point or you replace the %f in your code by %; % f:.
-
Installation and first run of the FF, I get a collection box that is displayed for about 5 seconds after the program loads and displays the first screen. It obviously requires a response, but it contains no words. The box doesn't cause any Word show either. the screen takes over and no other button cannot be clicked: I have a hardware failure on FF.
Empty the gray bar, box, box white, question mark?
This irritating box was related to an add-on for AOL. In order to remove the extension of the problem, you will probably need to start Firefox in Safe Mode so that it does not work.
You need to close Firefox anyway, you can, for example:
- ALT + F4
- Right click of its mosaic on the taskbar > close all windows
- (Ctrl + Shift + Esc) Task Manager
To start Firefox in Safe Mode, hold down the SHIFT key while double-clicking the shortcut.
A small dialog box should appear. Click on 'Start mode safe' (not update).
Then you can go to the Add-ons page using either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click Extensions. Then on the right, locate AOL.
A little luck?
-
Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
Any help in this direction is greatly appreciated.User Agent
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
You can open them in a tab in Firefox through these links:
resource:///defaults/pref/firefox.js
resource:///greprefs/all.js
-
I move a file from a hard drive to a usb port and now I lost the USB I get the hard drive
Tuesday, June 26, 2012 13:21:43 + 0000, MarvinBester wrote:
I move a file from a hard drive to a usb port and now I lost the USB I get the hard drive
"Deleting" a file does not actually delete it marks just the space
also available to be used. There are third-party programs that can
sometimes recover deleted files. The problem is that the space used by
the file is likely to be replaced very quickly, and it makes
the unrecoverable file.So your chances of successfully recover this file are decent if you
Try it again immediately after the deletion of it and go quickly
downhill from there. If you have used the computer since then (for
example to write this question and read this answer), your chances may
be very poor now.But if the file is large enough, it's still worth a try. Stop
using the computer in question immediately, if you have not done
already. Download an undelete program (and here's one:)
http://www3.TELUS.NET/mikebike/restoration.html but there are several
others to choose from; Do a search) on a friend's computer (do not
it on yours because that would overwrite the files you want
Undelete) and bring it to you on a CD or thumb drive to try.If that fails, your only recourse is to bring or send the disc
a company of professional file recovery. This kind of service is very
expensive and may or may not work in your case.Ken Blake, Microsoft MVP
Maybe you are looking for
-
Impossible to make FaceTime calls on iPhone 7 using Siri
I tried to use Siri to do a FaceTime call tonight and gave an unusual error: "I wish I could, but FaceTime is configured with me yet." I'm able to get Siri to open the FaceTime app, simply cannot access directly from my contacts and apart from this S
-
OfficeJet 4630: password wireless
I'm trying to set up the connection of my printer wireless to my router again. The new router password includes a + sign, but I can't see how to enter a sign using the keypad of the printer.
-
HP G71: Boot and ask for administrator password
Trying to restore with the dvd of the laptop but it asks the administrator password when starting. After 3 attempts having failed, it displays "System Disable 55923469". I see others with the same problem but with different numbers. How can I get the
-
Is there a phone number what can I talk to someone?
-
Installation of Oracle 11 g question
I have editions of Oracle 11 g 2 installed on 2 differentPublishing company on /oracle/product/11.2.0.2Standard edition on /oracle/product/11.2.0.2.0 I want to create a new Standard DB after steps below 1. export ORACLE_BASE = / oracle2. export ORACL