external help file | Module Name | online version | schema |
---|---|---|---|
PSDates-help.xml |
PSDates |
2.0.0 |
Gets additional extended date values that are not included by default with the Get-Date cmdlet
Get-DateExtended [[-Date <DateTime>]] [-Day <Int32>] [-DisplayHint <String>] [-Hour <Int32>] [-Millisecond <Int32>] [-Minute <Int32>] [-Month <Int32>] [-ProgressAction <ActionPreference>] [-Second <Int32>] [-UnixTimeSeconds] [-Year <Int32>] [<CommonParameters>]
This function includes added values for: FirstDayOfYear : First day of the year LastDayOfYear : Last day of the year StartOfWeek : First day of the week EndOfWeek : Last day of the week StartOfMonth : First day of the month EndOfMonth : Last day of the month TimeZone : Current machine timezone Quater : The quarter of the year.
All dates are based on the date passed. If no date is passed in the current date and time are used.
Get-DateExtended
Gets extended date and time information based on the current time
Get-DateExtended "11/17/2017"
Gets extended date and time information for a specific date
The datetime value to return the information for
Type: DateTime
Parameter Sets: (All)
Aliases: LastWriteTime
Accepted values:
Required: True (None) False (All)
Position: 0
Default value: [DateTime]::Now
Accept pipeline input: True
Accept wildcard characters: False
DontShow: False
Specifies the day of the month that is displayed. Enter a value from 1 to 31.
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Determines which elements of the date and time are displayed.
The accepted values are as follows:
Date: displays only the date Time: displays only the time DateTime: displays the date and time
Type: String
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the hour that is displayed. Enter a value from 0 to 23.
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the milliseconds in the date. Enter a value from 0 to 999.
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the minute that is displayed. Enter a value from 0 to 59.
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the month that is displayed. Enter a value from 1 to 12
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Accepted values:
Required: True (None) False (All)
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the second that is displayed. Enter a value from 0 to 59.
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Date and time represented in seconds since January 1, 1970, 0:00:00.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
Specifies the year that is displayed. Enter a value from 1 to 9999
Type: Int32
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Fill Related Links Here