× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

CALL EB.CHECK.DATE(XXX)

  • malai
  • malai's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 years 1 month ago #859 by malai
CALL EB.CHECK.DATE(XXX) was created by malai
Hi,

Have any one come accross this routine 'EB.CHECK.DATE(XXX)'?

What this actually used for?
_________________
M A L A I

Please Log in or Create an account to join the conversation.

More
18 years 1 month ago #860 by vkarthik
Replied by vkarthik on topic CALL EB.CHECK.DATE(XXX)
This routine is used to find out the year if only the two digits are passed as arguments. This is used for archiving purpose. This will work only for the 20 years basis. Meaning from today to 20 years if you pass any two digit the it will give you the correct year. if you pass any digit early then it will consider as later.

For E.g
TODAY = 2005
INCOMING = 95
OUTGOING WILL BE 1995

INCOMING = 84
OUTGOING WILL BE 2084

Please Log in or Create an account to join the conversation.

  • malai
  • malai's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 years 1 month ago #861 by malai
Replied by malai on topic CALL EB.CHECK.DATE(XXX)
Thanks Karthik

Here are some more info.

This routine was developed to solve Y2K program.

For Example

T.VAR = '051114'
CALL EB.CHECK.DATE(T.VAR) will give you 20051114

T.VAR = '951114'
CALL EB.CHECK.DATE(T.VAR) will give your 19951114

The displacement value used here is 20 years.
_________________
M A L A I

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds