1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Function rbf_formatDate() does not recognize format "2015-Feb-18"

Discussão em 'PSDN - Forum' iniciado por Meryk, Fevereiro 18, 2015.

  1. Meryk

    Meryk Guest

    Hi,

    I am using the function rbf_formatDate to format a given date using a format I am getting from the available ones in the setting page of user. (Settings>My Settings> Field Date format), i.e these :

    [​IMG]

    The format of "2015-Feb-18 14:12" is "yyyy-MMM-dd hh:mm".

    This format as we can see is available in Rollbase, but when we do this :

    var myDate = new Date();

    var formattedDate = rbf_formatDtae(myDate, "yyyy-MMM-dd") ;

    formattedDate is : "2015-0505-18". (We are truncating the time too).

    Any ideas why this format is not recognized by rbf_formatDate ?


    Thank you

    Meryem

    Continue reading...

Compartilhe esta Página