Convert 2x char theDate [0] to float format

HI everbody
I want to separate out the day convert char theDate[0]; and theDate[1]; to float format.
Coderne shows how to print the day value one character at a time.
and wishes float = day to show when printing to display example number of Days in the Month.
Today's Date shown together as eksemple 23

Coder:
//print the date DD/MM/YY
miac.print(theDate[0]);
miac.print(theDate[1]);
Is there anyone here who will be assisting with a code eksemple?
I am absolutely new users of Arduino code .
Please see the attachment Ardino file: MiacCloack.ino

Attached file:

MiacClock.ino (3.3 KB)

Using a float for time and date would be a disaster, float numbers are not accurate enough.
Your existing code makes no allowance (as far as I can see) when (for example) minutes goes from 59 to 60 and the hour should change.
There are already 'c' libraries available for manipulating date and time, have a search.

Hi quilkin
Thanks for the answer.
I, must have clock added these codes including the "month + day + hour + minute" added to Sun_Position below.
Have tried many code attempts without success.
So a single code eksemple showing how to add Clock "minute" to the codes in Arduino_Sun_Position_Calculations will be very happy.

Has attached Ardino file: "Arduino_Sun_Position_Calculations".

Arduino_Sun_Position_Calculations.zip (2.84 KB)

OK, I see what you are trying to do now.
Float variables are required for lat/long and calculating angles (i.e. sun angle) because they are continuously variable concepts. But time and date are discreet and don't work with floats.
Try this library for adjusting your date and time.

HI everbody

Have a question please see below...
day printed as 14:00
But I want only numbers 14 shown
What should be done to show only "14"
Or do you have another solution to the codes?
That beginning grateful if you would assist

Code:

char buffer[2];

// print the date DD/MM/YY ยจ
buffer[0] = theDate[0];
buffer[1] = theDate[1];
buffer[2] = '\0';
float day = atof(buffer);//convert the array into a float

Serial.println(day);

Didn't you see my post above?
Floats have no place in date/time management.
Have a look at the library I suggested (or a similar one)

Hi quilkin
I have seen your post above.
Floats like date / time management are working fine now in my project.
Has attached file .. so you can see how I have inserted the date / time.
But of course I intressere if you have a suggestion;-)

MiacClockSun_Position.zip (3.3 KB)

I can see how you've converted the date and time elements into floats , and then printed them out as integers. It might work but the conversion to floats is a waste of time and programming space.

I still don't see how your increment and decrement functions can work. As I asked before, what happens when you increment from 59 minutes or decrement from zero? These functions are also comparing characters (e.g. '0') but they should be comparing integers.