Format Date Time

Hi ,

My Report is displaying DateTime in MMDDYYYY format, i want in DDMMYYYY format.

I tried FormatDateTime(DATA,"ddMMyyyy") but its not working.

Please help !!


Irfan

Comments

  • edited 2:36PM
    Hello,

    FormatDateTime uses predefined format name:
    wrote:
    FormatDateTime(DateTime value, string format)

    Formats the specified value as a date/time, using the named format specified in the "format" parameter. The valid values for this parameter are:

    "Long Date"
    "Short Date"
    "Long Time"
    "Short Time"

    To format the Text object, right-click it, select "Format...", choose custom format and type the following formatting string:
    dd/MM/yyyy
  • edited 2:36PM
    Hi,
    it's right but i use in Edit Text: [Format([Dt], "dd/MM/yy")] - [FormatNumber([Num],0)] not work.

    I have this problem even when I use Format in code: Text1.Text = Format(Dt.Value, "dd/MM/yy") or Saldo.Text = Format(_Saldo,"#.##0,00")

    Thanks.
  • edited 2:36PM
    Hello,

    Please read the doc regarding the use of Format function:
    http://fast-report.com/documentation/UserM.../funcformat.htm

    Correct use:
    Text1.Text = Format("dd/MM/yy", Dt.Value)
  • edited 2:36PM
    My Report is displaying DateTime in MMDDYYYY format, i want in DDMMYYYY format.
  • DateTime thisDate1 = new DateTime(2011, 6, 10);
    Console.WriteLine("Today is " + thisDate1.ToString("MMMM dd, yyyy") + ".");

    DateTimeOffset thisDate2 = new DateTimeOffset(2011, 6, 10, 15, 24, 16,
    TimeSpan.Zero);
    Console.WriteLine("The current date and time: {0:MM/dd/yy H:mm:ss zzz}",
    thisDate2);
    // The example displays the following output:
    // Today is June 10, 2015.
    // The current date and time: 06/10/11 15:24:16 +00:00
  • edited 2:36PM
    What's the code for skip, next and exit button?
  • edited 2:36PM
    AlexTZ wrote: »
    Hello,

    FormatDateTime uses predefined format name:
    AlexTZ wrote: »
    FormatDateTime(DateTime value, string format)

    Formats the specified value as a date/time, using the named format specified in the "format" parameter. The valid values for this parameter are:

    "Long Date"
    "Short Date"
    "Long Time"
    "Short Time"

    To format the Text object, right-click it, select "Format...", choose custom format and type the following formatting string:
    dd/MM/yyyy
  • edited 2:36PM
    Alex good day!

    I am trying to create a button, which will Skip the dialogue and go to the next dialogue and Exit and Back. what is the code for Skip, Next and Back?

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.