Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Date Manipulationan Someone Help - PLEASE ???

Re: Date Manipulationan Someone Help - PLEASE ???

From: Steve Cosner <stevec_at_zimmer.csufresno.edu>
Date: 1997/01/03
Message-ID: <5ajeuc$d6f@shadow.CSUFresno.EDU>#1/1

In article <luVH9HAuh7yyEw2R_at_bccomp.demon.co.uk>, BC Computing Limited <BCCOMP_at_bccomp.demon.co.uk> wrote:
> I have an input form written in FORMS 4.5, with a date entry field,
> I want the user to be able to enter the date in any format, but to
> store it and display it in DD-MMM-YYYY format.
>
> Yes, it's probably very simple but I've only just finished
> celebrating and I can't quite get my head round it at the moment.

No, it's not very simple, and this will probably make your head hurt even more.

You will need to create your date field on the form as a text item, while your actual date from the database is stored in a hidden item. Use a post-query trigger to display the date in the text item, and in your when-validate-item trigger, copy the valid input date into the hidden date field.

I have done something similar to what you want, so below is most of the code. I included the time element, so you may want to strip out that part of the code. It accepts the date input in a number of formats, and then re-displays the date in MM/DD/YYYY HH:MI:SS format.

Steve Cosner

PROCEDURE U04_Check_Date


Received on Fri Jan 03 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US