CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How to Set Persain Date

by ariopax » 10 Nov 2015 09:32

Hi

I want set a default date in JQDatePicker of Persian calendar,for example i want put '1394/01/01' in it.
How to i do it?



Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by Alexander Bulei » 10 Nov 2015 10:56

Hi ariopax,

When property Regional is dporFarsiPersian, the component will convert the Gregorian date automatically.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by ariopax » 10 Nov 2015 11:22

Hi

I set property Regional to dporFarsiPersian,but when set date to '2015/21/03' that is '1394/01/01', but after compiling the jqdatepicker show
'2015/21/03'


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by assapan » 10 Nov 2015 16:41

Hi if you set date in design mode you have the problem , but if when page is created or any other event you set
Code: Select all
datepicker.date:=now;
then date is correctly displayed.
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by ariopax » 11 Nov 2015 08:10

Hi and Tanks assapan .

I set datepicker2.date:=now; and problem solved ,and datepicker2 show today in Persian date.
But how to set this date : 2015/03/21 that is in Persian date : 1394/01/01.
Because if i write datepicker1.date:=2015/03/01; after run datepicker1 show this date : 1280/08/10
and if i write datepicker1.date:=1394/01/01; after run datepicker1 show this date : 1282/08/02.


Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran

by assapan » 11 Nov 2015 08:30

EncodeDate(2015,03,21) should solve your problem :mrgreen:
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by ariopax » 11 Nov 2015 09:04

Hi

Tanksssssssssssssssssssssssssss :D




Best Regards.
ariopax
 
Posts: 123
Joined: 07 Dec 2014 21:09
Location: Tehran,Iran


Return to JQDatePicker

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.