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 6:15PM
    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 6:15PM
    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 6:15PM
    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 6:15PM
    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 6:15PM
    What's the code for skip, next and exit button?
  • edited 6:15PM
    AlexTZ wrote: »
    Hello,

    FormatDateTime uses predefined format name:

    To format the Text object, right-click it, select "Format...", choose custom format and type the following formatting string:
    dd/MM/yyyy
  • edited 6:15PM
    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