powershell - Increase Number each day -


I'm sure this is very easy, but I'm killing a dead end.

I need to create a variable in PowerShell which increases by one day every day I am going to use this variable in an email subject, as part of the testing schedule. Defines the number of days. Like "Test - Day 38", when the script runs the next day, it will have to prepare "Test - Day 39".

I can not use date and add-ons because the count is not limited

Here is the code, $ day is the result

  # on the first day, starting $ startDate = [datetime] '2014-01-12 $ # Started with #defined dead (+ 1 "day 1") $ day = [int] ((date of receipt) - $ startdate) .TolDates + 1 # result string "test - day $ day"  

This code output (today)

  test - day 38  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -