time format in infopath 2010

hi

I have two list that customized them by infopath2010 and the format of time is in Persian and the type is hegria

when I created the data connection and I wanted to read the time from list a in list b

but when the time appread in InfoPath in list b the time is in English and type of milady(AD)

I want to show the time the same as the time in forme a

plz help me

it's important for me

thanks

May 24th, 2015 8:00am

Hi,

Per your description, I have created two lists in SharePoint: ListA and ListB. In the ListB InfoPath form, there is Date and Time Picker control to display the time form ListA. I added a data connection to retrieve the time column from listA, then add a button with InfoPath rule to set filed value.

To display the Persian time format in the InfoPath form, you could change the control properties via:

Double-click the date picker, in the Control Properties dialog box, click Format under Data tab and choose the format you want.

An article about time format in InfoPath for your reference:
https://support.office.com/en-ie/article/Format-a-date-time-or-number-615658fa-d1ec-4b16-907f-7691339397a1
 
Best Regards,
 
Dean Wang

Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 2:33am

hi

thanks for helping me

your solution is correct

but the problem is here :

the type of date in list a is data format in list B is dropdown format and filter the dropdown field to retrieve the date when the subjects is equal

but the times have shown in dropdown field as AD I want show the time in Persian

pls help me

thnaks

May 26th, 2015 5:56am

Hi,

By design, the dropdown control returns date as string. So you are unable to change the format to Persian.

As a workaround, you could add Date and Time Picker control to display the time form ListA in the InfoPath form and add a button with InfoPath rule to set filed value.

Best Regards,

Dean Wang

Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 9:46pm

hi

thanks a lot for helping me

but there is a problem is here :that I want when select the subject several times have shown

for that I should use the dropdown field

if there is a solution help me

its important to me to can show the several time with Persian format

plz

May 30th, 2015 6:16am

Hi,

There is no OOB way to achieve your requirement. As a workaround, you could add custom JavaScript to the InfoPath form and apply custom JavaScript to modify the English datetime format to Persian format.

Best Regards,

Dean Wang

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 8:53am

hi

thanks a lot

June 6th, 2015 8:04am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics