Click here to Skip to main content
15,914,924 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDataGrid Display Question Pin
satcomengineer24-Feb-05 16:15
satcomengineer24-Feb-05 16:15 
GeneralRe: DataGrid Display Question Pin
Dave Kreskowiak25-Feb-05 1:04
mveDave Kreskowiak25-Feb-05 1:04 
GeneralRe: DataGrid Display Question Pin
satcomengineer25-Feb-05 2:14
satcomengineer25-Feb-05 2:14 
GeneralRe: DataGrid Display Question Pin
Avarona25-Feb-05 1:05
Avarona25-Feb-05 1:05 
GeneralFrom text to time Pin
numbrel24-Feb-05 15:24
numbrel24-Feb-05 15:24 
GeneralRe: From text to time Pin
Dave Kreskowiak25-Feb-05 1:00
mveDave Kreskowiak25-Feb-05 1:00 
GeneralRe: From text to time Pin
numbrel25-Feb-05 5:30
numbrel25-Feb-05 5:30 
GeneralRe: From text to time Pin
Dave Kreskowiak25-Feb-05 7:14
mveDave Kreskowiak25-Feb-05 7:14 
numbrel wrote:
But that seems to be about taking DateTime and manipulating it to get the string values desired.

If that were the case, the method would be called .ToString(). DateTime.Parse() takes a string, and optionally, a format provider for some guidance, and returns a .NET DateTime object with the numerical version of the date and time.

If the user is entering date and time seperately, you can combine them and submit the new date/time string to the Parse method:
dtmDate = maskDate.FormattedText
dtmTime = maskTime.FormattedText
Dim myDateTime As DateTime = DateTime.Parse( dtmDate & " " & dtmTime )

The .Parse() method assumes that the full date and time are provided in the current culture, which on default US machines is "mm/dd/yyyy hh:mm:ss". If any information is missing, the default action is to replace the missing information with the current date/time info.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralMicrosoft compact Framework Pin
Member 37044324-Feb-05 9:05
Member 37044324-Feb-05 9:05 
GeneralDeacreasing Memory Usage Pin
Mitch F.24-Feb-05 7:20
Mitch F.24-Feb-05 7:20 
GeneralRe: Deacreasing Memory Usage Pin
Dave Kreskowiak24-Feb-05 7:33
mveDave Kreskowiak24-Feb-05 7:33 
GeneralRe: Deacreasing Memory Usage Pin
Mitch F.24-Feb-05 8:00
Mitch F.24-Feb-05 8:00 
GeneralOffice Automation Pin
mav070724-Feb-05 3:57
mav070724-Feb-05 3:57 
GeneralRe: Office Automation Pin
Dave Kreskowiak24-Feb-05 4:44
mveDave Kreskowiak24-Feb-05 4:44 
GeneralFormatting text in Text or rtf file Pin
Thirumalaraj24-Feb-05 2:25
Thirumalaraj24-Feb-05 2:25 
GeneralRe: Formatting text in Text or rtf file Pin
Dave Kreskowiak24-Feb-05 4:25
mveDave Kreskowiak24-Feb-05 4:25 
GeneralRe: Formatting text in Text or rtf file Pin
Thirumalaraj24-Feb-05 15:56
Thirumalaraj24-Feb-05 15:56 
GeneralRe: Formatting text in Text or rtf file Pin
Dave Kreskowiak25-Feb-05 0:59
mveDave Kreskowiak25-Feb-05 0:59 
GeneralControl's Main Bindable Property Pin
JanEngelKetmig24-Feb-05 1:17
JanEngelKetmig24-Feb-05 1:17 
GeneralRe: Control's Main Bindable Property Pin
Dave Kreskowiak24-Feb-05 1:35
mveDave Kreskowiak24-Feb-05 1:35 
GeneralRe: Control's Main Bindable Property Pin
JanEngelKetmig24-Feb-05 2:16
JanEngelKetmig24-Feb-05 2:16 
GeneralMoving folder from one drive to another Pin
Rizwan Bashir23-Feb-05 21:03
Rizwan Bashir23-Feb-05 21:03 
GeneralRe: Moving folder from one drive to another Pin
Dave Kreskowiak24-Feb-05 1:32
mveDave Kreskowiak24-Feb-05 1:32 
Questiondatabase password with vb6? Pin
a_yosef23-Feb-05 21:00
a_yosef23-Feb-05 21:00 
AnswerRe: database password with vb6? Pin
Dave Kreskowiak25-Feb-05 7:20
mveDave Kreskowiak25-Feb-05 7:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.