Re: convert date and time formats
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Mon, 27 Jun 2005 21:49:36 +0200
Cor,
"Cor Ligthert" <notmyfirstname@xxxxxxxxx> schrieb:
Wake up, Cor. We are talking about converting a date to a string only. VB.NET's methods for doing that are not stronger than those provided by the .NET Framework.
I wrote this expressely because you are writting this forever in this way about other functions as Mid, Len, and whatever.
I use VB.NET's own functions whenever possible.
However when the "parse" comes than you have another opinion.
I hardly ever parse a date without specifying a certain date format. Typically in Windows Forms applications processing user input I prefer a DateTimePicker control for choosing dates over a textbox and string parsing. When reading dates from a file, I use 'DateTime.ParseExact' to make sure the data is read the way I want it to be read on every system.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- Follow-Ups:
- Re: convert date and time formats
- From: Armin Zingler
- Re: convert date and time formats
- References:
- convert date and time formats
- From: romy
- Re: convert date and time formats
- From: Herfried K. Wagner [MVP]
- Re: convert date and time formats
- From: Cor Ligthert
- Re: convert date and time formats
- From: Herfried K. Wagner [MVP]
- Re: convert date and time formats
- From: Cor Ligthert
- convert date and time formats
- Prev by Date: Re: vb.net Threading Question
- Next by Date: Re: Copy files after successful build
- Previous by thread: Re: convert date and time formats
- Next by thread: Re: convert date and time formats
- Index(es):
Relevant Pages
|