Converts a date time to a string.
public static string DateToString(
DateTime value
)
Public Shared Function DateToString( _
ByVal value As Date _
) As String
NSString* dateToString:(NSDate*)date;
public static String dateToString(Date value)
public:
static String^ DateToString(
DateTime^ value
)
value
The date time value to be converted.
A string representation of value that can be converted back to a date.
DateToString converts a date value to a universal ISO string value. In the .NET platform, this is performed using the "s" format specifier and in the JavaScript platform this is performed using the ToISOString method.
The string value can be converted back to a date using DateFromString.
DateToString and DateFromString can be used to convert a date value to and from a string. The conversion uses a universal ISO time format (the "s" format specifier in .NET and ToISOString in JavaScript).
These methods are used when serializing and de-serializing date values such as when an annotation container is saved or loaded from the disk. the data value is converted to a string during serialization (saving) and then converted back from string during deserialization (loading).
For example, DateToString and DateFromString are used when saving and loading AnnReview.Date values.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.