共用方式為


DateTimeValue.FromDateTime(DateTime) Method

Definition

Returns a new DateTimeValue object that was created from a DateTime value.

public static DocumentFormat.OpenXml.DateTimeValue FromDateTime (DateTime value);
static member FromDateTime : DateTime -> DocumentFormat.OpenXml.DateTimeValue
Public Shared Function FromDateTime (value As DateTime) As DateTimeValue

Parameters

value
DateTime

A DateTime value to use to create a new DateTimeValue object.

Returns

A DateTimeValue object that corresponds to the value parameter.

Applies to