Crystal Reports: How To Change Date Format Of Crystal Report Field From Asp.net 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dhanashivam
    New Member
    • Mar 2007
    • 31

    Crystal Reports: How To Change Date Format Of Crystal Report Field From Asp.net 2.0

    Hi All,

    I have a crystal report document which is opened from my asp.net 2.0 application (C# code). In the design time i fixed my date fields as MM/dd/yyyy format.

    but now we are going to implement the project in different culture. so now i need to change the format of date field at run time thru asp.net 2.0 (C#).

    Help is highly appriciated.

    Thanks in Advance.
  • dhanashivam
    New Member
    • Mar 2007
    • 31

    #2
    hi all,

    i got solution for this problem.

    when we need to change the format of a date field or number field or string field, we can use the parameters.

    Do the following to format the date field.

    1. create a parameter that accepts number values.

    2. Right click on your date field and choose format field.

    3. go to the datetime tab and click on the formula section for "Order".

    4. insert your parameter here and save.

    5. now the selected date field is formated as per the given format

    6. 0 - YMD; 1-DMY; 2-MDY. these are the numbers can be given by the parameter from your application.

    Comment

    Working...