Convert dates

I need to convert the dates to a specific format, not just dd/mm/yyyy. Sometimes I need to show the date in Solar Calendar, other times in a serial number, other times in Gregorian calendar, Chinese calendar, .... I cannot use the localization system of .Net for because not all calendar systems are contemplated.

Is there a similar system to IValueConverter for FR fields? I would need to format the date fields in a custom function, not for the System.Globalization

Thank you

Comments

  • edited 5:53AM
    You may use own function (either added to a report script, or registered via RegisterObjects.AddFunction call). The function will take a DateTime a return a formatted string.
  • edited 5:53AM
    Yes, I know, in fact, it is how I solved it FR4. However, using the power of .Net I hoped that this new version offers a more sophisticated way, like Binding.Converter for forms.
    The problem is that I need to add "FormatDate" function in all date boxes, for example "FormatDate([ds.EntryDate])". It is not too robust, it is easy to forget it, specially using the drag and drop feature.
    Maybe in a future you can consider to add something.

    Thank you

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.