How to accept date in particular format



Hello,

I am looking for accepting a date in format mm/dd/yyyy. The initial
screen should show current date in this format, for eg.
10/31/2005.
I am working on ACU COBOL.
The date should be accepted at a particular line and column, say line
4. I have to default it with current date
and allow the user to edit.

I have tried
working-storage section.
01 in-date pic x(10) value " / / ".

procedure division.
move "10/31/2005" to in-date.
accept in-date line 4 prompt.

The problem with above is that neither the date gets defaulted, nor
does it force the user to enter it in proper format. Excuse me if this
is a newbie question. Any help is appreciated.
Thanks for your attention.

PradeepR

.



Relevant Pages

  • Re: How to accept date in particular format
    ... >I am looking for accepting a date in format mm/dd/yyyy. ... in locales/countries, is to have 3 fields, properly identified as day, ...
    (comp.lang.cobol)
  • Re: French numeric formats
    ... Without changing the language settings, I was able to get it with a custom ... > space seperator, but is not accepting the brackets as an available option, ...
    (microsoft.public.excel.misc)
  • Re: Cell locking dependent on Cell value
    ... Paul Lautman wrote: ... always be visible in C2 while D2 is accepting the user's changes ... Not if you format C2 to have the same colour text as background or give it a ... Very niffty solution. ...
    (microsoft.public.excel.misc)
  • Re: Date & Time Default Doesnt Stay Defaulted
    ... You then Quit Word, accepting to save Normal Template if prompted? ... the format I select as "default" doesn't stay defaulted. ...
    (microsoft.public.mac.office.word)
  • Re: Date confusion
    ... > program will work with the date format mm/dd/yyyy and other times it ... > is dd/mm/yyyy and sometimes it will work with both. ... > program the application will work with the mm/dd/yyyy format and some ... This email account is my spam trap so I ...
    (microsoft.public.scripting.vbscript)