Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Excel Date Import

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Excel Date Import
 Login/Join
 
Member
posted
When I import an Excel file with Dates, the Date field defaults to Alpha 50 char. Is there any way to import from Excel and have the field set to a date format automatically?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 5 | Registered: March 08, 2012Report This Post
Expert
posted Hide Post
first, what do you mean by 'import'?
second, excel dates are numeric fields, with values of , say, 41410 (which is today's value);
the 'date' appearance is just a mask, just as a smart-date is a mask.
the basedate for excel is 1/1/1900 and the basedate for focus is (i forget now, but i think its 1 day earlier, unless you're on unix in which case its 1/1/1970).
so you'ld have to take the number from excel and correct it for base change, then display it under a date mask.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
If you mean by "import" that you have created a MASTER file against your EXCEL sheet, then any dates should be automatically defined as a date-time. If you want you can then change the MASTER and use:
FORMAT=DMYY, ACTUAL=DATE
or any other format you might want.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
Should have used the word "upload" the file not "import". Either way, the data for the dates in Excel come over as formatted dates (MM/DD/YYYY) and since they Focus wants to label them as A50, can't do math functions with them.

I realize Excel dates are the number of days since 1900, but people think in terms of MM/DD/YYYY. Yes, I can reformat the dates to a number in Excel, bring it over, reconvert it back to a date format, but I was trying to see if there was a way to eliminate the manual steps.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 5 | Registered: March 08, 2012Report This Post
Expert
posted Hide Post
well, if they're A50 and mm/dd/yyyy
then just parse with the edit function
and convert to whatever you need.
takes a few steps, but way doable.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
baron,
Could you post your MASTER or at least the date field in the MASTER?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Excel Date Import

Copyright © 1996-2020 Information Builders