Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
I have an application that needs to validate and convert a date from
an external system.
The format of the date can be m/d/ccyy,mm/d/ccyy,m/dd/ccyy,mm/dd/ccyy
with the "/" included.
The converted format needs to be a numeric field in the format
ccyymmdd.
I have the following code in my program:
<snip>
// Edit Start Date
Monitor;
EpHOrDate = %Dec(%Date(Start_Date : *USA));
<<SNIP>>
Using the values above, I set Date_In in DEBUG prior to the Monitor
to each of the dates.
BOTH of the dates were flagged as errors.
A. What am I doing wrong?
B. How can I handle the different date formats for editing and
conversion?
The client is on V6R1M1
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.