# How to get dicom time tag

**URL:** https://discourse.vtk.org/t/how-to-get-dicom-time-tag/8194
**Category:** Support
**Created:** [April 1, 2022, 8:05am UTC](https://discourse.vtk.org/t/how-to-get-dicom-time-tag/8194 "2022-04-01T08:05:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Eric-JH](https://discourse.vtk.org/user_avatar/discourse.vtk.org/eric-jh/32/4716_2.png) [@Eric-JH](https://discourse.vtk.org/u/Eric-JH)
#### Post date: [April 1, 2022, 8:05am UTC](https://discourse.vtk.org/t/how-to-get-dicom-time-tag/8194/1 "2022-04-01T08:05:38Z")

</div>

I need to get the dicom generation time after loading a series of dicom files and I think the dicom tag is 0008|0033. But I couldn’t find a function to solve this.

```auto
int main()
{

	string OpenPath = "C:\\Users\\26327\\Desktop\\dll4sw\\data\\SE4\\";
	
	
	vtkSmartPointer<vtkDICOMImageReader> reader =
		vtkSmartPointer<vtkDICOMImageReader>::New();
	reader->SetDirectoryName(OpenPath.c_str());
	reader->Update();
	
	// clinic info
	double* PixelSpacing = reader->GetPixelSpacing();
	double* DataSpacing = reader->GetDataSpacing();
	float* ImageOrientation = reader->GetImageOrientationPatient();
	float* Position = reader->GetImagePositionPatient();
}

```
