Showing posts with label Umalqura. Show all posts
Showing posts with label Umalqura. Show all posts

Sunday, April 26, 2015

calendar get year umalqura using c#

 CultureInfo arCulture = new CultureInfo("ar-SA");
        System.Threading.Thread.CurrentThread.CurrentCulture = arCulture;
        arCulture.DateTimeFormat.Calendar = new UmAlQuraCalendar();
        int yearr =arCulture.Calendar.GetYear(DateTime.Now );

Friday, June 6, 2014

jquery umalqura Calender with Gregorien Date Selector User Control Example

output :
description :
the article source build on ApI related
http://keith-wood.name/datepick.html

the Sample contains user Control with two textboxes the right one to select Umalqura date , the Second to select Gregorien Date .
when you select date (umalqura or gregorien ) the second date captured automatic using conversion method.

public Properties For User Control :
1- getGregorianDateText
return selected Gregorien date for the calender control.

2- getHijriDateText
get Hijri date using Umalqura Calender user selected .

3- SelectedCalendareDate
get or set the selected date for calender ,

4- SetHijriDate
set hijri date for the calender.
-------------------------------------------------------------
you can download Full Sample using this dropbox Link.
https://www.dropbox.com/sh/h840agq0v6xgnix/AAB2uJ-xLstnTQfzOCZTqOrza?dl=0