Saltar para o conteúdo principal
Versão: Próximo

VP SET DATE VALUE

VP SET DATE VALUE ( rangeObj : Object ; dateValue : Date { ; formatPattern : Text } )

ParâmetroTipoDescrição
rangeObjObject->Objeto intervalo
dateValueDate->Valor date a definir
formatPatternText->Formato do valor

Descrição

The VP SET DATE VALUE command assigns a specified date value to a designated cell range.

In rangeObj, pass a range of the cell(s) whose value you want to specify. If rangeObj includes multiple cells, the value specified will be repeated in each cell.

The dateValue parameter specifies a date value to be assigned to the rangeObj.

The optional formatPattern defines a pattern for the dateValue parameter. Passe qualquer formato personalizado ou você pode usar uma das seguintes constantes:

ParâmetrosDescriçãoPadrão predefinido dos EUA
vk pattern long dateFormato ISO 8601 para a data completa"dddd, dd MMMM yyyy"
vk pattern month dayFormato ISO 8601 para o mês e o dia"MMMM dd"
vk pattern short dateFormato ISO 8601 abreviado para a data"MM/dd/yyyy"
vk pattern year monthFormato ISO 8601 para o mês e o ano"yyyy MMMM"

For information on patterns and formatting characters, please refer to the Date and time formats section.

Exemplo

//Set the cell value to the current date
VP SET DATE VALUE(VP Cell("ViewProArea";4;2);Current date))

//Set the cell value to a specific date with a designated format
VP SET DATE VALUE(VP Cell("ViewProArea";4;4);Date("12/25/94");"d/m/yy ")
VP SET DATE VALUE(VP Cell("ViewProArea";4;6);!2005-01-15!;vk pattern month day)

Veja também

4D View Pro cell format
VP SET DATE TIME VALUE
VP SET VALUE