robinhodemorais Posted June 9, 2020 Share Posted June 9, 2020 I realized that by default in the unidatetimepicker when you type the day it completes with the month and current year, when you type the day and month it fills the year, this without having to inform the bar, however for the brazil pattern when you type the day and month it does not fill in correctly, for example, if you type 0806 and type tab, it fills 08/06/2020, how do I make it fill correctly according to the Brazilian standard? DateFormat is configured this way: dd / MM / yyyy Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 9, 2020 Share Posted June 9, 2020 2 hours ago, robinhodemorais said: I realized that by default in the unidatetimepicker when you type the day it completes with the month and current year, when you type the day and month it fills the year, this without having to inform the bar, however for the brazil pattern when you type the day and month it does not fill in correctly, for example, if you type 0806 and type tab, it fills 08/06/2020, how do I make it fill correctly according to the Brazilian standard? Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted June 9, 2020 Author Share Posted June 9, 2020 perfect, I made some adjustments according to my standard and it worked correctly ... function beforeInit(sender, config) { config.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n"; } however, I have to do this for each datetimepicker I have on the system, can I do it in a way that replicates for everyone? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 9, 2020 Share Posted June 9, 2020 4 minutes ago, robinhodemorais said: however, I have to do this for each datetimepicker I have on the system, can I do it in a way that replicates for everyone? I will check. Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted June 9, 2020 Author Share Posted June 9, 2020 1 hour ago, Sherzod said: I will check. thank you, it will be very useful Quote Link to comment Share on other sites More sharing options...
picyka Posted June 9, 2020 Share Posted June 9, 2020 1 hour ago, robinhodemorais said: perfect, I made some adjustments according to my standard and it worked correctly ... function beforeInit(sender, config) { config.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n"; } however, I have to do this for each datetimepicker I have on the system, can I do it in a way that replicates for everyone? +1 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 9, 2020 Share Posted June 9, 2020 32 minutes ago, robinhodemorais said: thank you, it will be very useful You can try to use this approach, by changing the value to the required. 1 Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted June 9, 2020 Author Share Posted June 9, 2020 16 minutes ago, Sherzod said: You can try to use this approach, by changing the value to the required. perfect thank you. MainForm.Script: Ext.form.field.Date.prototype.altFormats="dmY|d/m/Y|j/n/Y|j/n/y|j/m/y|d/m/y|j/m/Y|d/n/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|d-m-Y|j-n|j/n"; 2 Quote Link to comment Share on other sites More sharing options...
picyka Posted November 12, 2020 Share Posted November 12, 2020 As far as I remember this was already resolved, but with version 39 it came back // CONFIGURING REGIONAL CONFIGURATIONS UniGuiApplication.PFmtSettings.ThousandSeparator: = '.'; UniGuiApplication.PFmtSettings.DecimalSeparator: = ','; UniGuiApplication.PFmtSettings.CurrencyDecimals: = 2; UniGuiApplication.PFmtSettings.DateSeparator: = '/'; UniGuiApplication.PFmtSettings.ShortDateFormat: = 'dd / mm / yyyy'; UniGuiApplication.PFmtSettings.LongDateFormat: = 'dd / mm / yyyy'; UniGuiApplication.PFmtSettings.TimeSeparator: = ':'; UniGuiApplication.PFmtSettings.TimeAMString: = 'AM'; UniGuiApplication.PFmtSettings.TimePMString: = 'PM'; UniGuiApplication.PFmtSettings.ShortTimeFormat: = 'hh: mm'; UniGuiApplication.PFmtSettings.LongTimeFormat: = 'hh: mm: ss'; UniGuiApplication.PFmtSettings.CurrencyString: = 'R $'; 1 Quote Link to comment Share on other sites More sharing options...
picyka Posted November 12, 2020 Share Posted November 12, 2020 http://prime.fmsoft.net/demo/desktop/mdemo.dll confirmed in the official demo, just go to the DateTime menu, type 11/10 and give a tab it inverts. Quote Link to comment Share on other sites More sharing options...
picyka Posted November 13, 2020 Share Posted November 13, 2020 Up. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2020 Share Posted November 13, 2020 15 hours ago, picyka said: confirmed in the official demo, just go to the DateTime menu, type 11/10 and give a tab it inverts. Hello, What language should be installed on the system? I added Portuguese Brazil, but could not reproduce. Quote Link to comment Share on other sites More sharing options...
picyka Posted November 13, 2020 Share Posted November 13, 2020 1 minute ago, Sherzod said: Olá, Qual idioma deve ser instalado no sistema? Adicionei o Brasil português, mas não consegui reproduzir. pt_br First I gave a CTRL + F5, then I typed 10/11 and gave a tab, it changed to 11/10/2020 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.