←Select platform

DateFromString Method

Summary

Converts a string value to a date time.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public static DateTime DateFromString( 
   string value 
) 
Public Shared Function DateFromString( _ 
   ByVal value As String _ 
) As Date 
public static DateTime DateFromString(  
   string value 
) 
NSDate* dateFromString:(NSString*)value; 
public static Date dateFromString(String value) 
 function Leadtools.Annotations.Core.AnnObject.DateFromString(  
   value  
) 
public:  
   static DateTime^ DateFromString( 
      String^ value 
   ) 

Parameters

value
The string value to be parsed to a date.

Return Value

The data value parsed.

Remarks

DateToString converts a date value to a universal ISO string value. In the .NET platform, this is performed using the "s" format specidier 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 specidier 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.

Requirements

Target Platforms

See Also

Reference

AnnObject Class

AnnObject Members

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Core Assembly