Date Format

S

Shaweta

On the infopath form,I want to Display the date in the format Month dd,yyyy
format.
e.g. August 20,2008.
Can anybody tell me what coding can i do for the same.
Split function i m already using for getting month,date & year from what
date user enters.
 
A

Anuma(GGK Tech)

Hi,

We can do this without using code. Can you please follow the below steps:
1. Select Dat picker properties.
2. In the “Data†tab select “Format†button.
3. Select “Display the date like this†radia button in the Date format window.
4. Select “Month date, year†format from list.(ex: March 14, 2001)
5. Click on ok.

I hope this will help you.
 
P

Paresh

Hi,

We can do this without using code. Can you please follow the below steps:
1. Select Dat picker properties.
2. In the “Data” tab select “Format” button.
3. Select “Display the date like this” radia button in the Date format window.
4. Select “Month date, year” format from list.(ex: March 14, 2001)
5. Click on ok.

I hope this will help you.

Also, you can select English(Canada) format in the date picker format
properties.

Thanks,
Paresh
 
S

Shaweta

Date which i have to format is coming from another field which is a date
picker suppose A.
And in my script.js file i am using date in 'A' field and formatting this
date & thn displaying it in another Text field.

I am following the steps as under:
I splitted the date got from 'A' by using split function and thn store the
yyyy,mm,dd in an array.
then i got formatted date by manully comparing the second element of the
array i.e. mm with nummbers 1-12 and correspondingly i assigned the month
name.

Is there any better way to solve this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top