These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Can I remove the time from current date and time field?

Nancy
Registered: Sep 27 2007
Posts: 7
Answered

Hi, I'm trying insert the current date when the form is opened. I only want the date, not the time. I get both, and don't see how I can lose the time. Can anyone help? Thanks / Nancy

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Have you tried setting the display format for the field to just one of the the date formats?

Our is there a "Date" field?

George Kaiser

Nancy
Registered: Sep 27 2007
Posts: 7
Your suggestion works fine if I'm submitting a simple date field for the user to complete (thanks), but if I bind it to automatically insert the current date it, I seem to lose the ability to format it ..?
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
In the "Library" for form fields in the "Custom" floder there is a field for "Current Date" that is predifined to place the current date into a field with the format as specified in the "ready layout" script action:

----- form1.#subform[0].CurrentDate::ready:layout - (FormCalc, client) -----------------------------

// Current Date in short-style date format.

$.rawValue = num2date(date(), DateFmt(1))


You cna change the format from "DateFrmt(1)" to what date format you want to use.

George Kaiser

Nancy
Registered: Sep 27 2007
Posts: 7
Thanks! I didn't scroll down far enough in the Library to see the Custom options. Worked perfectly. Thanks again.