cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in 'Date' Formula

Former Member
0 Kudos
65

Hi All,

i have an input parameter of datatype 'Date'. The format of the parameter is 'mm/dd/yyyy' (selected from calendar control).

Now i need to display this in 'mm-dd-yyyy'.

i used the below formula:

ToText ({?dat},"MM-DD-YYYY");

The Result is 08-DD-YYYY for the input parameter 08/01/2008.

Kindly help me with the formula.

Thanks,

Meena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use Amr Salem's reply will help you to solve this.

You can use the following formula also:

ToText(Datetime({?date}), "MM-dd-yyyy")

I hope this solves your query!!

Regards,

Parsa.

Former Member
0 Kudos

Hi Ramesh,

Thanks a lot !! It definetely solved my problem ....

Hi Amr,

i was using the formula to display a dynamic header content.. thats why i was using formula .. Thanks for your response..

Meena

Answers (1)

Answers (1)

amrsalem1983
Active Contributor
0 Kudos

you can use the direct formats, you dont need to create a formula

just put the date field in the report design, and then right click, and then select "Format Field"

select the format do you want, or click "Customize" for custom formats

good luck