cancel
Showing results for 
Search instead for 
Did you mean: 

Time Field

Former Member
0 Kudos

Hi

How to add time field in the form (same as that of date field).

When I'm selecting "Time" in pattern then dialog box is not getting displayed!

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Nikhil,

Follow these steps to get time and date in same field.

1. Drag-drop Date/Time Field from Standard library onto your subform.

2. Write the following code in exit event of the Date/Time field. Keep the language as FormCalc.

$.rawValue = Concat(Num2Date(Date2Num(DateTimeField1.formattedValue)), " ", Num2Time(Time(), "HH:MM:SS"))

PS: DateTimeField1 is name of my field.

Chintan

chintan_virani
Active Contributor
0 Kudos

Nikhil,

Well if the solution really helped you then 10 points should be provided.

Chintan

Answers (0)