| external help file | SPClientCore.dll-Help.xml |
|---|---|
| Module Name | SPClientCore |
| online version | |
| schema | 2.0.0 |
Creates a new column of date/time type.
New-KshColumnDateTime [-List] <List> [-CalendarType <CalendarType>] [-ClientSideComponentId <String>]
[-ClientSideComponentProperties <String>] [-CustomFormatter <String>] [-DateFormat <ColumnDateTimeFormatType>]
[-DefaultFormula <String>] [-DefaultValue <String>] [-Description <String>] [-Direction <String>]
[-EnforceUniqueValues <Boolean>] [-FriendlyFormat <ColumnDateTimeFriendlyFormatType>] [-Group <String>]
[-Hidden <Boolean>] [-Id <Guid>] [-Indexed <Boolean>] [-JSLink <String>] -Name <String> [-NoCrawl <Boolean>]
[-ReadOnly <Boolean>] [-Required <Boolean>] [-StaticName <String>] [-Title <String>]
[-AddToDefaultContentType] [-AddToNoContentType] [-AddToAllContentTypes] [-AddColumnInternalNameHint]
[-AddColumnToDefaultView] [-AddColumnCheckDisplayName] [-AddToDefaultView] [<CommonParameters>]
New-KshColumnDateTime [-CalendarType <CalendarType>] [-ClientSideComponentId <String>]
[-ClientSideComponentProperties <String>] [-CustomFormatter <String>] [-DateFormat <ColumnDateTimeFormatType>]
[-DefaultFormula <String>] [-DefaultValue <String>] [-Description <String>] [-Direction <String>]
[-EnforceUniqueValues <Boolean>] [-FriendlyFormat <ColumnDateTimeFriendlyFormatType>] [-Group <String>]
[-Hidden <Boolean>] [-Id <Guid>] [-Indexed <Boolean>] [-JSLink <String>] -Name <String> [-NoCrawl <Boolean>]
[-ReadOnly <Boolean>] [-Required <Boolean>] [-StaticName <String>] [-Title <String>]
[-AddToDefaultContentType] [-AddToNoContentType] [-AddToAllContentTypes] [-AddColumnInternalNameHint]
[-AddColumnToDefaultView] [-AddColumnCheckDisplayName] [-AddToDefaultView] [<CommonParameters>]
New-KshColumnDateTime [-CalendarType <CalendarType>] [-ClientSideComponentId <String>]
[-ClientSideComponentProperties <String>] [-CustomFormatter <String>] [-DateFormat <ColumnDateTimeFormatType>]
[-DefaultFormula <String>] [-DefaultValue <String>] [-Description <String>] [-Direction <String>]
[-EnforceUniqueValues <Boolean>] [-FriendlyFormat <ColumnDateTimeFriendlyFormatType>] [-Group <String>]
[-Hidden <Boolean>] [-Id <Guid>] [-Indexed <Boolean>] [-JSLink <String>] -Name <String> [-NoCrawl <Boolean>]
[-ReadOnly <Boolean>] [-Required <Boolean>] [-StaticName <String>] [-Title <String>] [-WhatIf]
[<CommonParameters>]
The New-KshColumnDateTime adds creates new date/time column to the current site or the specified list.
PS C:\> New-KshColumnDateTime -Name 'DateTimeColumn' -Format 'DateOnly' -FriendlyDisplayFormat 'Disabled'Creates a new column.
Specifies whether to confirm that no other column has the same display name.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether to add an internal column name hint for the purpose of avoiding possible database locking or column renaming operations.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether a new column that is added to the specified list is also be added to the default list view.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether a new column that is added to the specified list is also be added to all content types in the site collection.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether a new column that is added to the list is also be added to the default content type in the site collection.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether to add a column to the default view.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether a new column is not be added to any content type.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the calendar type.
Type: CalendarType
Parameter Sets: (All)
Aliases:
Accepted values: None, Gregorian, Japan, Taiwan, Korea, Hijri, Thai, Hebrew, GregorianMEFrench, GregorianArabic, GregorianXLITEnglish, GregorianXLITFrench, KoreaJapanLunar, ChineseLunar, SakaEra, UmAlQura
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the ID of the client-side component.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the JSON string that the propeties of the client-side component.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the JSON string of custom format.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the date/time format.
Type: ColumnDateTimeFormatType
Parameter Sets: (All)
Aliases:
Accepted values: DateOnly, DateTime
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the default formula.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the default value.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the description.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the direction.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether the column must to have unique value.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the friendly format.
Type: ColumnDateTimeFriendlyFormatType
Parameter Sets: (All)
Aliases:
Accepted values: Unspecified, Disabled, Relative
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the name for grouping.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False-Hidden
Specifies whether to hide the column from users.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the ID.
Type: Guid
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether to the column is indexed.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the JSLink URL.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the list.
Type: List
Parameter Sets: ParamSet1
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseSpecifies the name.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether to suppress to search crawling.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether changes to the column properties are denied.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies whether a value is required.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the static name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the title.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: ParamSet3
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.