Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Farsi date
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Farsi date

 Post Reply Post Reply Page  12>
Author
melika_1st View Drop Down
Newbie
Newbie
Avatar

Joined: 18 December 2002
Location: Iran
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote melika_1st Quote  Post ReplyReply Direct Link To This Post Topic: Farsi date
    Posted: 11 May 2003 at 5:51am

hi

how can i change my forum date to Farsi date ?

for example today we are in 2003/5/11 , but in Farsi we are in 1382/2/21 .

please help me

regard

Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2003 at 7:09pm

I donīt know what Farsi time is about, but I think that you can do this "time changes" with a basic time-javascript. Just mod it to fit your Farsi...



Edited by jabbasabba
"Itīs different between knowing the way than walking it"
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 11 May 2003 at 7:40pm

I know how to do that in SQL Server so I am sure it would be similar possible to do in ASP:

To convert the actual date into Farsi (Hope is the same as Hijri)
SELECT CONVERT(nchar, GETDATE(), 131)

To convert from Hijri to Gregorian Calendar:
SELECT CONVERT(datetime, ' 7/05/1421 12:14:35:727PM', 131)

The clue is the 131 thus you have to options:

  •  130 - Returns the date via the Hijri calendar, in dd mon yyyy hh:mi:ss:mmmAM format.
  •  131 - Returns the date via the Hijri calendar, in dd/mm/yy hh:mi:ss:mmmAM format.
  • Back to Top
    melika_1st View Drop Down
    Newbie
    Newbie
    Avatar

    Joined: 18 December 2002
    Location: Iran
    Status: Offline
    Points: 34
    Post Options Post Options   Thanks (0) Thanks(0)   Quote melika_1st Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 3:26am

    thanks

    but you don't say where i must use this scripts.

    Back to Top
    michael View Drop Down
    Senior Member
    Senior Member
    Avatar

    Joined: 08 April 2002
    Location: United States
    Status: Offline
    Points: 4670
    Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 2:53pm
    Well, it all depends on what you want to do, if you have a normal date in the database you could retrieve them with the script above, I think you are looking more for a vbs solution, and I am not sure how that works
    Back to Top
    melika_1st View Drop Down
    Newbie
    Newbie
    Avatar

    Joined: 18 December 2002
    Location: Iran
    Status: Offline
    Points: 34
    Post Options Post Options   Thanks (0) Thanks(0)   Quote melika_1st Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2003 at 4:13am

    Back to Top
    rahimi View Drop Down
    Groupie
    Groupie
    Avatar

    Joined: 12 January 2004
    Location: Iran
    Status: Offline
    Points: 53
    Post Options Post Options   Thanks (0) Thanks(0)   Quote rahimi Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2004 at 2:36am

    http://forums.webwiz.net/forum_posts.asp?TID=8795&am p;am p;KW=farsi

    I Create This Topic For Persian ( Farsi ) Mode to Use Forum in Farsi.

    also You can Set and  Download Farsi Date in this Topic.

    Mohammad



    Edited by rahimi
    Back to Top
    miladanimator View Drop Down
    Groupie
    Groupie
    Avatar

    Joined: 24 July 2005
    Location: United States
    Status: Offline
    Points: 156
    Post Options Post Options   Thanks (0) Thanks(0)   Quote miladanimator Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2005 at 4:06pm
    سلام به همگي

    بروبچ من از نسخه اس كيو ال استفاده مي كنم

    هست ، ردر ديتابيس به علامت سوال ؟؟؟؟؟؟؟؟؟؟؟؟؟ تبذديل ميشه Ntext اما متاسفانه متن پيام ها و ....  كه داده هاشون از نوع 

    علت چيه ؟؟؟  راه حل ؟؟؟
    Back to Top
     Post Reply Post Reply Page  12>

    Forum Jump Forum Permissions View Drop Down

    Forum Software by Web Wiz Forums® version 12.08
    Copyright ©2001-2026 Web Wiz Ltd.


    Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
    About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

    Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
    Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

    Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

    Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.