Page view counter

convert date christian date to persian date

Rate It (2)

Last post 08-29-2008 6:00 AM by sepid. 3 replies.

Sort Posts:

  • convert date christian date to persian date

    08-11-2008, 6:02 AM
    • Loading...
    • sepid
    • Joined on 04-06-2008, 4:32 AM
    • Posts 181
    • Points 26

    hi,

    I need to convert christain date that was produced in my Sql database to persian date like" دوشنبه 21 مرداد 1378" in a datalist.Could you recommend me any function.I use VisualStudio 2005 & VB.

    thanks in advance

    Sepid

  • Re: convert date christian date to persian date

    08-11-2008, 6:51 AM
    • Loading...
    • jeremyh
    • Joined on 01-23-2003, 12:14 PM
    • York, England
    • Posts 1,318
    • Points 7,417
    Regards
    Jeremy
    If this has helped Please: Don't forget to click "Mark as Answer" on the post that helped you.
    That way future readers will know which post solved your issue.
  • Re: convert date christian date to persian date

    08-19-2008, 1:53 PM
    • Loading...
    • eddy_eclectic
    • Joined on 07-26-2008, 6:20 PM
    • Posts 1
    • Points 2

     If you search Yahoo! or Google it you may easily find it.

    But you may download PersianDate Web Control at PersianDate.ir, this is exactly what you are looking for.

     After installation is completed then try this source:

     

    1    <asp:DataList ID="DataList1" runat="server" DataSourceID="YourSqlDataSource">
    2 <ItemTemplate>
    3
    4 <%-- Remember that whenever you are displaying a specific date change AutoUpdate to false --%>
    5 <sim:PersianDate ID="PersianDate1" runat="server"
    6 AutoUpdate="false" DateValue='<%# Eval("Column_Name_of_Your_Date_Values") %>' />
    7
    8 </ItemTemplate>
    9 </asp:DataList>
      I assumed you are using SqlDataSource

      



     


     
    Filed under:
  • Re: convert date christian date to persian date

    08-29-2008, 6:00 AM
    • Loading...
    • sepid
    • Joined on 04-06-2008, 4:32 AM
    • Posts 181
    • Points 26

    Hi eddy,

    Thanks for your reply ,

    I couldn't register in the site you recommended to get  the component.And I don't want to have a  trail version.

    Could you please help me.

    Sepid 

Page 1 of 1 (4 items)