# Get the minimum date (usually used for date calculation) Get-date 0 # Get the current date get-date # Get the year of the current date (get-date ). year # Get the month of the current date (get-date ). month # Get the day of the current date (get-date ). day # Get the number of days from this year (get-date ). dayofyear # Get Week (get-date ). dayofweek # the first day of this year (get-date 0 ). addyears (get-date ). year-1) # the last day of this year (get-date 0 ). addyears (get-date ). year ). adddays (-1) # The first day of this month (get-date 0 ). addyears (get-date ). year-1 ). addmonths (get-date ). month-1) # The last day of the month (get-date 0 ). addyears (get-date ). year-1 ). addmonths (get-date ). month ). adddays (-1) # The first day of the week (get-date 0 ). addyears (get-date ). year-1 ). adddays (get-date-uformat % V)-1) * 7) # The last day of the week (get-date 0 ). addyears (get-date ). year-1 ). adddays ([int] (get-date-uformat % v) * 7 ). adddays (-1) #00:00 (get-date-hour 0-minute 0-second 0)