xoops forums

SirSaeed

Just popping in
Posted on: 2014/1/1 17:49
SirSaeed
SirSaeed (Show more)
Just popping in
Posts: 12
Since: 2014/1/1 1
#1

Date conversion

Hey guys

I'm using Xoops 2.5. Persian. I wonder how can I utilize the internal date function (that returns Persian or Jalali calendar) as a conversion tool, so I can give it the Gregorian date and receive the equivalent Jalali date.

I'd appreciate your help.

Mamba

Moderator
Posted on: 2014/1/7 16:43
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#2

Re: Date conversion

Irmtfan would be the best one to ask, since he is expert in this area. Maybe you could reach out to him in Persian support site?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

SirSaeed

Just popping in
Posted on: 2014/1/8 23:15
SirSaeed
SirSaeed (Show more)
Just popping in
Posts: 12
Since: 2014/1/1 1
#3

Re: Date conversion

Persian support site practically does not work! So I thought maybe I can find answers here.

irmtfan

Module Developer
Posted on: 2014/1/9 16:12
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#4

Re: Date conversion

Hi
The final solution for this is adding Jquery date picker to xooops core.
I replied you here:
http://www.xoops.ir/modules/newbb/viewtopic.php?topic_id=2773

SirSaeed

Just popping in
Posted on: 2014/1/12 8:07
SirSaeed
SirSaeed (Show more)
Just popping in
Posts: 12
Since: 2014/1/1 1
#5

Re: Date conversion

Yeah, but the answer wasn't actually useful. It seems like it needs a pro knowledge level of Xoops.

SirSaeed

Just popping in
Posted on: 2014/1/19 9:54
SirSaeed
SirSaeed (Show more)
Just popping in
Posts: 12
Since: 2014/1/1 1
#6

Re: Date conversion

The answer to my original question was to simply use gregorian_to_jalali() function!

I don't know why I never bothered checking language files and how nobody answered this simple question.

Mamba

Moderator
Posted on: 2014/1/19 15:21
Mamba
Mamba (Show more)
Moderator
Posts: 10828
Since: 2004/4/23
#7

Re: Date conversion

I thought that Irmtfan responded to you.

I never used Persian calendar, so I had no idea and couldn't help you.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs