The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 YYMMDD Date Misinterpreted
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

toonbon

19 Posts

Posted - 03/27/2009 :  9:35:29 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have a column I imported that represents the date as yymmdd. However 290801 is 1929, Aug, 1, and Origin is assuming 2029. Is there a way to tell Origin that the missing two digits in the date are 19 and not 20?

Thanks

easwar

USA
1964 Posts

Posted - 03/28/2009 :  12:24:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

So the data does not have sufficient information on whether it should be 19xx or 20xx, and Origin assumes 20xx, not sure if there is a setting to change to 19, we can look...

But here is a workaround:
Once you import your data and set the column to date, you could execute this script:

nn = date(8/1/2029) - date(8/1/1929);
col(1) -= nn; //assuming col 1 has your date data

That should change it to 1929 from 2029.

If you are using the import wizard to import, you could set the column as date and in the last page of the wizard, you can add this script to perform the subtraction as part of your import, and then save a filter and re-use filter with future files, if you need to do this repeatedly.

Easwar
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000