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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...