12-29-2009 04:21 PM
Hi All,
I have a created a program which takes all the data from different excel files and dumps into single excel file, after dumping the data the date format in column A and time format in column B gets disturbed.
In the original excel file date is in the format 12/16/2009 but when i dump the data into a new excel file it takes the format 40163 .
Similarly for time parameter in column B. All the time parameter are in the decimal format.
Why we find this kind of behaviour, I am using Excel get data VI to extract all data from excel file and Excel easy table to dump the obtained data.
How to convert back to original form ?
Thanks
Rohith
Solved! Go to Solution.
12-29-2009 04:42 PM
12-30-2009 10:14 AM
Hi,
I know that thing, cant we do it programatically to avoid user intervention ?
12-30-2009 10:40 AM - edited 12-30-2009 10:45 AM
You can format the cells programmatically before writing to the cells. I looks like you have the MS Office toolkit? If you do look at the help file for the Excel Set Cell Format.vi. If you don't have the toolkit you will have to use ActiveX.
Hope this helps.
Also there is a repository of links here. But please don't pose questions there.
12-30-2009 12:33 PM
Hi,
formatting is a good option,
I had number 40163 i gave a format type mm/dd/yy
for date format h:mm AM/PM (12 hr format)
12-30-2009 01:03 PM
12-30-2009 02:10 PM
Hello,
I too saw that, In hurry i pressed ...sorry for that. But how to mark that as solution now.
12-30-2009 04:59 PM
12-31-2009 10:08 AM
If you could show me how, it will make my life easier.
Thanks.
12-31-2009 10:17 AM
Try This