Jump to content

Jalali Calendar


patmap

Recommended Posts

Hi,

 

Can you try this approach?!:

procedure TMainForm.btn1Click(Sender: TObject);
var
  yyyy, mm, dd: Word;
begin
  //edDate2.DateTime:=edDate2.DateTime+1;  // <------------
  DecodeDate(edDate2.DateTime, yyyy, mm, dd);
  UniSession.AddJS(edDate2.JSName + '.setValue(new Date('+ IntToStr(yyyy) +', '+ IntToStr(mm-1) +', '+ IntToStr(dd+1) +'))');

  lb2.Caption:=FormatDateTime('YYYY/MM/DD',edDate2.DateTime);
end;

Best regards.

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...
On 1/18/2016 at 8:45 AM, Sherzod said:

Hi,

 

1. Download these files and copy to directory for example "files/":

  1.    https://raw.githubusercontent.com/behrang/Ext.ux.JalaliDatePlugin/master/Jalali.js
  2.    https://raw.githubusercontent.com/behrang/Ext.ux.JalaliDatePlugin/master/JalaliDate.js
  3.    https://raw.githubusercontent.com/behrang/Ext.ux.JalaliDatePlugin/master/JalaliDatePlugin-fa_IR.js
  4.    https://raw.githubusercontent.com/behrang/Ext.ux.JalaliDatePlugin/master/JalaliDatePlugin.js

* JalaliDatePlugin-fa_IR.js - for localization

 

2. UniServerModule.CustomFiles add these "lines":


files/Jalali.js
files/JalaliDate.js
files/JalaliDatePlugin.js
files/JalaliDatePlugin-fa_IR.js

3. UniDateTimePicker->ClientEvents->UniEvents ... add beforeInit fn:


function beforeInit(sender, config)
{
  sender.plugins = [new Ext.ux.JalaliDatePlugin]
}

Try...

 

post-906-0-43834600-1453094149_thumb.png

 

Best regards.

Why is it difficult to display the date in the Opera browser?

http://s7.picofile.com/file/8380201950/Help.png

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 months later...
On 12/26/2019 at 1:54 PM, Touska said:

Hi,

 

for new version of Extjs , you must download js library from this address below :

https://github.com/omidd1315/Extjs-6-Persian-Date-Plugin

and 

UniDateTimePicker->ClientEvents->UniEvents ... add beforeInit fn:


function beforeInit(sender, config)
{
  sender.plugins = ['jalalidate']  
}

 

then work fine.

این کد خرداد ماه 1399 اشتباه نمایش میدهد و وقتی که کلیک میکنید همان روز در تیرماه نمایش میدهد؟؟؟

Link to comment
Share on other sites

5 hours ago, CAVeter said:

این کد خرداد ماه 1399 اشتباه نمایش میدهد و وقتی که کلیک میکنید همان روز در تیرماه نمایش میدهد؟؟؟

Hello,

Can you please specify which edition and build of UniGUI are you using?

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

Hi sherzod 

If date is null then I want to uniDateTimePicker do not show any value.

I tested below code and uniDateTimePicker show "1/11/28-".

if ( DM1.Main_FDQuery.FieldByName('give_date_of_card').AsString = null ) then DynamicForm.give_date_of_card_UniDateTimePicker.DateTime := 0

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...