01-07-18, 07:44 PM
حساب يوم ميلادك من المدخلات التالية
1- إدخال الشهر الذي ولدت فيه
2- إدخال السنة التي ولدت فيها
3- حساب تاريخ الميلاد
1- إدخال الشهر الذي ولدت فيه
PHP كود :
Dim birthMonth As Integer = 12
2- إدخال السنة التي ولدت فيها
PHP كود :
Dim birthYear As Integer = 1980
3- حساب تاريخ الميلاد
PHP كود :
Dim birthDay As Integer = birthMonth
birthDay = birthDay + 18
birthDay = birthDay * 25
birthDay = birthDay - 333
birthDay = birthDay * 8
birthDay = birthDay - 554
birthDay = birthDay / 2
birthDay = birthDay + 12
birthDay = birthDay * 5
birthDay = birthDay + 692
birthDay = birthDay * 20
birthDay = birthDay + Integer.Parse(birthYear.ToString.Substring(2, 2))
birthDay = birthDay - 32940
birthDay = Integer.Parse(birthDay.ToString.Substring(0, 2))
Dim birthDate As String = String.Format("{0} {1} {2}", birthDay, birthMonth, birthYear)
Retired

