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
 All Forums
 Origin Forum
 Origin Forum
 YYMMDD Date Misinterpreted

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
toonbon Posted - 03/27/2009 : 9:35:29 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
easwar Posted - 03/28/2009 : 12:24:04 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000