Friday, March 26, 2010

Is it possible to format Current Date?

I can format regular date fields w/o any problem, but the Current Date field (from the custom object library) seems to resist formatting. No matter what pattern I choose or enter in either the Display or Data tab, the date will only appear as 9/26/09. Is there some trick to formatting this object?

Is it possible to format Current Date?

Go to the layout:ready event for the field and modify the date format.

The default FormCalc is as follows:

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

Replace DateFmt(1) with the applicable format. For example,

$.rawValue = num2date(date(),''MM/DD/YYYY'')

Steve

Is it possible to format Current Date?

That works! Thanks!

No comments:

Post a Comment