K
Kranthi
Hi everyone!
I have a question ragarding reading month from the
JulianCalendar() instance.
I created MyCal as an instance of JulianCalendar and
tried to read the current month value from the it like
(I defined MyCal as JulianCalendar) and intitialise it
in the form load event
MyCal = New JulianCalendar()
CurrentMonth = MyCal.GetMonth(System.DateTime.Now)
Messagebox.show(CurrentMonth)
I change the system date (Month and day) and run the
program again and again. My problem is that in each month,
if the day >=14 then the CurrentMonth is showing the
correct value and if 1<=Day< 14 the CurrentMonth is
showing the previous month's value.
For example, if I set the system date to September 14
to 30th, the month value is showing up as "9" and if I
change the date from 1 to 13 in September, it's showing up
as "8" and it's the same case for each and every month.
Can somebody explain me why this is happening! Thanks
a lot in advance.
Regards,
Kranthi.
I have a question ragarding reading month from the
JulianCalendar() instance.
I created MyCal as an instance of JulianCalendar and
tried to read the current month value from the it like
(I defined MyCal as JulianCalendar) and intitialise it
in the form load event
MyCal = New JulianCalendar()
CurrentMonth = MyCal.GetMonth(System.DateTime.Now)
Messagebox.show(CurrentMonth)
I change the system date (Month and day) and run the
program again and again. My problem is that in each month,
if the day >=14 then the CurrentMonth is showing the
correct value and if 1<=Day< 14 the CurrentMonth is
showing the previous month's value.
For example, if I set the system date to September 14
to 30th, the month value is showing up as "9" and if I
change the date from 1 to 13 in September, it's showing up
as "8" and it's the same case for each and every month.
Can somebody explain me why this is happening! Thanks
a lot in advance.
Regards,
Kranthi.