←Select platform

SetDateValue(DicomElement,DicomDateValue) Method

Summary
Sets the Date value of a Data Element.
Syntax
C#
VB
C++
Java
public bool SetDateValue( 
   DicomElement element, 
   DicomDateValue value 
) 
Public Overloads Function SetDateValue( _ 
   ByVal element As DicomElement, _ 
   ByVal value As DicomDateValue _ 
) As Boolean 
public boolean setDateValue(DicomElement element, DicomDateValue value) 
public: 
bool SetDateValue(  
   DicomElement^ element, 
   DicomDateValue value 
)  

Parameters

element
An item in the Data Set.

value
A DicomDateValue object that contains the Date value to set.

Return Value

true if the Date value was set successfully; otherwise, it is false (the Date value of the Data Element could not be set).

Remarks

This method can be called only if the Value Representation of the Data Element is DicomVRType.DA. For more information about Value Representations, refer to Default Value Representation Table. To set more than one date value, use the SetDateValue overload.

Example

For an example, refer to SetIntValue.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.