.NET Framework Class Library DateTime..::.TryParseExact Method Converts the specified string representation of a date and time to its DateTime equivalent. The format of the string representation must match a specified format exactly. The method returns a value that indicates whether the conversion succeeded. This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
|
| Name | Description |
|---|
.gif) .gif) | TryParseExact(String, String, IFormatProvider, DateTimeStyles, DateTime%) | Converts the specified string representation of a date and time to its DateTime equivalent using the specified format, culture-specific format information, and style. The format of the string representation must match the specified format exactly. The method returns a value that indicates whether the conversion succeeded. | .gif) .gif) | TryParseExact(String, array<String>[]()[], IFormatProvider, DateTimeStyles, DateTime%) | Converts the specified string representation of a date and time to its DateTime equivalent using the specified array of formats, culture-specific format information, and style. The format of the string representation must match at least one of the specified formats exactly. The method returns a value that indicates whether the conversion succeeded. | Top

See Also
|
Biblioteca de clases de .NET Framework DateTime..::.TryParseExact (Método) Convierte la representación de cadena especificada de una fecha y hora en su equivalente de DateTime. El formato de la representación de cadena debe coincidir exactamente con un formato ya especificado. El método devuelve un valor que indica si la conversión finalizó correctamente. Este miembro está sobrecargado. Para obtener información completa sobre este miembro, incluida la sintaxis, el uso y algunos ejemplos, haga clic en un nombre de la lista de sobrecarga.

Lista de sobrecarga
|
| Nombre | Descripción |
|---|
.gif) .gif) | TryParseExact(String, String, IFormatProvider, DateTimeStyles, DateTime%) | Convierte la representación de cadena que se haya especificado para una fecha y hora en su DateTime equivalente, utilizando el formato, la información de formato específica de la referencia cultural y el estilo especificados. El formato de la representación de cadena debe coincidir exactamente con el formato especificado. El método devuelve un valor que indica si la conversión finalizó correctamente. | .gif) .gif) | TryParseExact(String, array<String>[]()[], IFormatProvider, DateTimeStyles, DateTime%) | Convierte la representación de cadena que se haya especificado para una fecha y hora en su DateTime equivalente, utilizando la matriz de formatos, la información de formato específica de la referencia cultural y el estilo especificados. El formato de la representación de cadena debe coincidir exactamente con al menos uno de los formatos especificados. El método devuelve un valor que indica si la conversión finalizó correctamente. | Arriba

Vea también
|