[1.0] DateField.Format not working

  1. #1

    [1.0] DateField.Format not working

    Hallo,

    maybe a bug that some formats for the DateField do not work?

    'd' and 't' works, but 'g' or 'G' not?! (date + time)
    Maybe some other formats are not supported yet?

    I referred to those formats on that MSDN page http://msdn.microsoft.com/en-us/library/az4se3k1.aspx
  2. #2
    Quote Originally Posted by nextSTEP View Post
    'd' and 't' works
    Hi,

    Agree with "d" but this doesn't work with "t".

    The matter is DateField doesn't operate with time.
    Last edited by Daniil; Nov 18, 2010 at 9:54 AM.
  3. #3
    Yes, the DateField will only render "Date" format specifiers.
    Geoffrey McGill
    Founder
  4. #4
    Hm?

    What are "Date" format specifiers? *confused*

    Meanwhile I worked it around by building the format using CultureInfo to get the DateFormat, etc.

    Couldn't it be worked around by supporting those formats (d, g, t, ...) using them to build the "real" format (--> Y/m/d, ...)?
  5. #5
    Hi,

    I'll try to shed light on this.

    The .NET standard is used in the markup or in code-behind. Then, internally, this is converted to PHP standard because this is used in ExtJS (client side).

    DateTimeUtils.ConvertNetToPHP() method is used to convert. You can find method's code in the toolkit's source.

    See also
    http://dev.sencha.com/deploy/dev/docs/?class=Date

Similar Threads

  1. DateField Format
    By Timothy in forum 1.x Help
    Replies: 4
    Last Post: Jun 07, 2013, 5:42 PM
  2. DateField format
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2009, 11:30 AM
  3. DateField Format
    By BLOZZY in forum 1.x Help
    Replies: 1
    Last Post: May 18, 2009, 3:41 PM
  4. [CLOSED] DateField not working when using custom format
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 22, 2009, 10:33 AM
  5. DateField Format dd/MM/Y
    By Kaido in forum 1.x Help
    Replies: 2
    Last Post: Apr 13, 2009, 12:02 PM

Tags for this Thread

Posting Permissions