Click here to Skip to main content
15,885,693 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionhttp://www.hotelsneardisneyland.biz/ Pin
lennonn1215-Aug-11 21:13
lennonn1215-Aug-11 21:13 
Question.NET Online Travel Guide Project Pin
Vanessa Vidal15-Aug-11 13:20
Vanessa Vidal15-Aug-11 13:20 
AnswerRe: .NET Online Travel Guide Project Pin
Not Active15-Aug-11 13:27
mentorNot Active15-Aug-11 13:27 
AnswerRe: .NET Online Travel Guide Project Pin
#realJSOP17-Aug-11 4:11
mve#realJSOP17-Aug-11 4:11 
AnswerRe: .NET Online Travel Guide Project Pin
Abhinav S17-Aug-11 8:23
Abhinav S17-Aug-11 8:23 
QuestionFile write times in .NET local drive vs. NAS drive Pin
MikeAngel15-Aug-11 11:07
MikeAngel15-Aug-11 11:07 
AnswerRe: File write times in .NET local drive vs. NAS drive Pin
Luc Pattyn15-Aug-11 11:39
sitebuilderLuc Pattyn15-Aug-11 11:39 
GeneralRe: File write times in .NET local drive vs. NAS drive Pin
MikeAngel15-Aug-11 12:10
MikeAngel15-Aug-11 12:10 
When I compensate for the differences in the storage devices by converting the last write date/time results to concatenated strings containing Year, Month, Day, Hour, and Second, the comparison works properly. With this approach I'm assuming that going to the second is accurate enough. You may want to use the same approach with yours.

Thanks for the explanation.

Here is my code:

VB
Dim SourceWriteTime As DateTime = CDate(File.GetLastWriteTimeUtc(SourceFileName))
With SourceWriteTime
     Test1 = .Year & "/" & .Month & "/" & .Day & "/" & .Hour & "/" & .Minute & "/" & .Second
End With

Dim BackupWriteTime As DateTime = CDate(File.GetLastWriteTimeUtc(BackupFileName))
With BackupWriteTime
     Test2 = .Year & "/" & .Month & "/" & .Day & "/" & .Hour & "/" & .Minute & "/" & .Second
End With
Dim SourceHasLaterDate As Int16 = Test1.CompareTo(Test2)


If the SourceHasLaterDate > zero, I backup the file.
QuestionMessage Closed Pin
15-Aug-11 10:43
mwhardin15-Aug-11 10:43 
AnswerRe: Is Sql2Code.com a good developer tool? Would you use it? Pin
Richard MacCutchan15-Aug-11 22:34
mveRichard MacCutchan15-Aug-11 22:34 
GeneralRe: Is Sql2Code.com a good developer tool? Would you use it? Pin
mwhardin16-Aug-11 9:28
mwhardin16-Aug-11 9:28 
QuestionTHREE TIER WITH ASP.NET WEBSERVICES Pin
sheemap14-Aug-11 11:47
sheemap14-Aug-11 11:47 
AnswerPlease don't - Repost Pin
thatraja14-Aug-11 18:18
professionalthatraja14-Aug-11 18:18 
AnswerRe: THREE TIER WITH ASP.NET WEBSERVICES Pin
Not Active14-Aug-11 18:53
mentorNot Active14-Aug-11 18:53 
QuestionDATAREPEATER GUIDE Pin
AleBio10-Aug-11 3:36
AleBio10-Aug-11 3:36 
AnswerRe: DATAREPEATER GUIDE Pin
Dave Kreskowiak10-Aug-11 7:22
mveDave Kreskowiak10-Aug-11 7:22 
AnswerRe: DATAREPEATER GUIDE Pin
Eddy Vluggen10-Aug-11 12:34
professionalEddy Vluggen10-Aug-11 12:34 
AnswerRe: DATAREPEATER GUIDE Pin
sivakumat11-Aug-11 1:34
sivakumat11-Aug-11 1:34 
QuestionSystem Enumeration - CreateClassEnumerator Pin
SarahJMR8-Aug-11 8:52
SarahJMR8-Aug-11 8:52 
QuestionRe: System Enumeration - CreateClassEnumerator Pin
Shameel10-Aug-11 5:20
professionalShameel10-Aug-11 5:20 
AnswerRe: System Enumeration - CreateClassEnumerator Pin
SarahJMR10-Aug-11 5:36
SarahJMR10-Aug-11 5:36 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
Shameel10-Aug-11 5:54
professionalShameel10-Aug-11 5:54 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
SarahJMR10-Aug-11 6:02
SarahJMR10-Aug-11 6:02 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
Shameel10-Aug-11 6:10
professionalShameel10-Aug-11 6:10 
GeneralRe: System Enumeration - CreateClassEnumerator Pin
SarahJMR10-Aug-11 6:17
SarahJMR10-Aug-11 6:17 

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.