Click here to Skip to main content
15,923,376 members
Home / Discussions / C#
   

C#

 
GeneralRe: Byte array into Excel using C#. Pin
led mike9-Apr-08 5:50
led mike9-Apr-08 5:50 
GeneralRe: Byte array into Excel using C#. Pin
kurangu9-Apr-08 5:59
kurangu9-Apr-08 5:59 
GeneralRe: Byte array into Excel using C#. Pin
KaptinKrunch9-Apr-08 7:11
KaptinKrunch9-Apr-08 7:11 
GeneralRe: Byte array into Excel using C#. Pin
Anthony Mushrow9-Apr-08 7:19
professionalAnthony Mushrow9-Apr-08 7:19 
GeneralRe: Byte array into Excel using C#. Pin
Anthony Mushrow9-Apr-08 7:16
professionalAnthony Mushrow9-Apr-08 7:16 
QuestionAdd files to a Msi installer Pin
Radu_209-Apr-08 4:18
Radu_209-Apr-08 4:18 
GeneralRe: Add files to a Msi installer Pin
led mike9-Apr-08 4:42
led mike9-Apr-08 4:42 
GeneralGetting Files LastWriteTime Pin
narayanagvs9-Apr-08 3:59
narayanagvs9-Apr-08 3:59 
Hi,

I need to get the Files last Modified Date.Iam given a Zip File by our client on extracting it I get many files, say I got a File A.txt.
whose modified date is 2/19/2008 06:30:00 A.M.

Iam using
DateTime _datetime;
String str = "C:\\A.txt"
FileInfo filinf = new FileInfo(str);
_datetime = filinf.LastWriteTime;

I get the correct output in _datetime.
Now , If I change my System TimeZone from ( GMT +5:30)chennai... to (GMT -8:00)Pacific Time (US & Canada) and then again extract the Zip file to get file "A" with modified date as 2/19/2008 06:30:00 A.M
and execute the same code I get it as 2/20/2008 05:30:00 A.M.

Why is it So?There is an offset of 1 hour.
I need Files Last Modified Date(say here 2/19/2008 06:30:00 A.M only) Irrespective of TimeZones Iam In.

Any suggestions would be appreciated.

Thanks
Satya

Today is a gift, that's why it is called the present.

GeneralRe: Getting Files LastWriteTime Pin
Abhijit Jana9-Apr-08 4:52
professionalAbhijit Jana9-Apr-08 4:52 
GeneralRe: Getting Files LastWriteTime Pin
narayanagvs9-Apr-08 5:49
narayanagvs9-Apr-08 5:49 
GeneralRe: Getting Files LastWriteTime Pin
Luc Pattyn9-Apr-08 6:32
sitebuilderLuc Pattyn9-Apr-08 6:32 
GeneralRe: Getting Files LastWriteTime Pin
Dave Kreskowiak9-Apr-08 7:05
mveDave Kreskowiak9-Apr-08 7:05 
GeneralInterop c# and cpp unmanaged [modified] Pin
Tomerland9-Apr-08 3:56
Tomerland9-Apr-08 3:56 
GeneralRe: Interop c# and cpp unmanaged Pin
led mike9-Apr-08 4:45
led mike9-Apr-08 4:45 
GeneralInteger Question Pin
jchigg20009-Apr-08 3:53
jchigg20009-Apr-08 3:53 
GeneralRe: Integer Question Pin
Colin Angus Mackay9-Apr-08 3:57
Colin Angus Mackay9-Apr-08 3:57 
GeneralRe: Integer Question Pin
jchigg20009-Apr-08 3:58
jchigg20009-Apr-08 3:58 
GeneralRe: Integer Question Pin
PIEBALDconsult9-Apr-08 13:25
mvePIEBALDconsult9-Apr-08 13:25 
GeneralRe: Integer Question Pin
Dave Kreskowiak9-Apr-08 7:02
mveDave Kreskowiak9-Apr-08 7:02 
Generalregex.replace question Pin
livez9-Apr-08 3:15
livez9-Apr-08 3:15 
AnswerRe: regex.replace question Pin
Eslam Afifi9-Apr-08 6:47
Eslam Afifi9-Apr-08 6:47 
GeneralRe: regex.replace question Pin
livez10-Apr-08 20:42
livez10-Apr-08 20:42 
GeneralRe: regex.replace question Pin
Eslam Afifi10-Apr-08 23:39
Eslam Afifi10-Apr-08 23:39 
GeneralIs .Net framework supporting for varcharts or is there any control supports for this... Pin
ddinesh9-Apr-08 3:11
ddinesh9-Apr-08 3:11 
GeneralRe: Is .Net framework supporting for varcharts or is there any control supports for this... Pin
Gareth H9-Apr-08 3:25
Gareth H9-Apr-08 3:25 

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.