Click here to Skip to main content
15,905,612 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how do I Convert Filetime to datetim Pin
Dave Kreskowiak13-Apr-06 9:12
mveDave Kreskowiak13-Apr-06 9:12 
GeneralRe: how do I Convert Filetime to datetim Pin
David M J13-Apr-06 9:58
David M J13-Apr-06 9:58 
GeneralRe: how do I Convert Filetime to datetim Pin
Dave Kreskowiak13-Apr-06 12:28
mveDave Kreskowiak13-Apr-06 12:28 
GeneralRe: how do I Convert Filetime to datetim Pin
David M J13-Apr-06 12:45
David M J13-Apr-06 12:45 
GeneralRe: how do I Convert Filetime to datetim Pin
Dave Kreskowiak13-Apr-06 12:50
mveDave Kreskowiak13-Apr-06 12:50 
GeneralRe: how do I Convert Filetime to datetim Pin
David M J13-Apr-06 13:00
David M J13-Apr-06 13:00 
GeneralRe: how do I Convert Filetime to datetim Pin
Dave Kreskowiak13-Apr-06 13:42
mveDave Kreskowiak13-Apr-06 13:42 
GeneralRe: how do I Convert Filetime to datetim Pin
David M J14-Apr-06 6:22
David M J14-Apr-06 6:22 
Hi Dave,
Fixed it in a more convential way ... :

Private Shared Function SystemTimeToDateTime(ByRef st As SYSTEMTIME) As DateTime

Dim dt As DateTime
Dim dtFormat As String

Dim en As New CultureInfo("en-GB")
dtFormat = "dd/MM/yyyy HH:mm"
With st
dt = DateTime.ParseExact( _
Format$(.wDay, "00") & "/" & _
Format$(.wMonth, "00") & "/" & _
Format$(.wYear - 1600) & " " & _
Format$(.wHour, "00") & ":" & _
Format$(.wMinute, "00"), dtFormat, en.DateTimeFormat) ' & ":" & _
' Format$(.wSecond, "00"), dtFormat, en.DateTimeFormat)

End With

Return dt
End Function

Gues it is a bit less efficient, not sure how much though.
Your remark about the code and the snot was that just about this problem or also about the rest of the code. If so could you give me some pointers, guess it is never too late to learn. Smile | :) )

Cheers
David

Think, try, think, think, try, think, think, think, try, ASK, think, try, advance on step and start over...
Questionreading msg file Pin
pnpfriend13-Apr-06 5:41
pnpfriend13-Apr-06 5:41 
AnswerRe: reading msg file Pin
Dave Kreskowiak13-Apr-06 7:12
mveDave Kreskowiak13-Apr-06 7:12 
GeneralRe: reading msg file Pin
pnpfriend14-Apr-06 8:02
pnpfriend14-Apr-06 8:02 
GeneralRe: reading msg file Pin
Dave Kreskowiak14-Apr-06 9:05
mveDave Kreskowiak14-Apr-06 9:05 
QuestionGlobal variable and Sub Main() Pin
percyvimal13-Apr-06 4:25
percyvimal13-Apr-06 4:25 
AnswerRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 7:06
mveDave Kreskowiak13-Apr-06 7:06 
GeneralRe: Global variable and Sub Main() Pin
percyvimal13-Apr-06 11:25
percyvimal13-Apr-06 11:25 
GeneralRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 12:14
mveDave Kreskowiak13-Apr-06 12:14 
AnswerRe: Global variable and Sub Main() Pin
cosma21715-Apr-06 6:05
cosma21715-Apr-06 6:05 
GeneralRe: Global variable and Sub Main() Pin
percyvimal15-Apr-06 23:11
percyvimal15-Apr-06 23:11 
QuestionDamage variable Pin
Mr kilany13-Apr-06 3:27
Mr kilany13-Apr-06 3:27 
AnswerRe: Damage variable Pin
Dave Kreskowiak13-Apr-06 7:07
mveDave Kreskowiak13-Apr-06 7:07 
GeneralRe: Damage variable Pin
Mr kilany15-Apr-06 3:16
Mr kilany15-Apr-06 3:16 
GeneralRe: Damage variable Pin
Dave Kreskowiak15-Apr-06 4:43
mveDave Kreskowiak15-Apr-06 4:43 
GeneralRe: Damage variable Pin
Mr kilany17-Apr-06 3:17
Mr kilany17-Apr-06 3:17 
GeneralRe: Damage variable Pin
Dave Kreskowiak17-Apr-06 12:11
mveDave Kreskowiak17-Apr-06 12:11 
GeneralRe: Damage variable Pin
Mr kilany18-Apr-06 3:26
Mr kilany18-Apr-06 3:26 

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.