On Thu, 7 Aug 200800, surfcolorado <> wrote: Ian Smith wrote: Have you tested it? No, but I'll try later. you jump to a lot of assumptions about me. Ian Smith wrote: Now, you will presumably say that your no-test is much more accurate than my test (most people do, for no coherent reason), but why would your guess be more likely to
Hi Orrin, It doesn't work because the -uformat is a parameter for get-date and for AddMonths() method. Try this instead: PS (get-date).AddMonths(-1).ToString("yyyyMM") 200802 Another way to get it is with the .NET string format operator: PS "{0:yyyyMM}" -f (get-date).AddMonths(-1) 200802 ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Thank you
This may be simpler ... (get-date "1/1/2008").AddMonths(-1).Month (get-date "1/1/2008").AddMonths(-1).Year -- Jon "Orrin" <oedenfield@gmail.com> wrote in message news:96e8203d-4371-4428-87bb-ae573875f9a2@2g2000hsn.googlegroups.com... Hello everyone, I'm having some issues getting a variable valued the way I want it. I'm using the get-date cmdlet to get the current date from
Jean1 <Polaris2002@AOL.com> écrivait news:1193936725.991650.200800@ 19g2000hsx.googlegroups.com: Leurs revendications relèvent de l'anachronisme car elles sont nées à une époque où les locomotives marchaient à la vapeur, donc où les conditions de travail étaient beaucoup plus difficiles que maintenant. http://www.misterolive.net/videoSNCF.html http://www.liberation.fr/actualite/politiques/288292
Salut ! Excellent ce clip :o) Profitez bien en tout cas ! Je ne ferai pas grève en novembre et je ne serai pas le seul, la SNCF fermera en 2012 ! Nemo "Jean1" <Polaris2002@AOL.com> a écrit dans le message de news: 1193936725.991650.200800@19g2000hsx.googlegroups.com... Leurs revendications relèvent de l'anachronisme car elles sont nées à une époque où les locomotives marchaient à