Using Datetime numbers individualy

Hello, is there any way to convert DateTime to strings or single numbers ? Like:
Time: 20:40:57
now.hour()) String
20 string1[0]=2 , string1[1]=0

Using simple RTC DS3231 with Sodaq_DS3231 library.

A better question might be what format DateTime is in the first place and why you need/want to convert it.

// Date and time functions using RX8025 RTC connected via I2C and Wire lib

#include <Wire.h>
#include "Sodaq_DS3231.h"

char weekDay[][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };

void setup () 
{
    Serial.begin(57600);
    Wire.begin();
    rtc.begin();
}

uint32_t old_ts;

void loop () 
{
    DateTime now = rtc.now(); //get the current date-time
    uint32_t ts = now.getEpoch();

    if (old_ts == 0 || old_ts != ts) {
	old_ts = ts;
	Serial.print(now.year(), DEC);
	Serial.print('/');
	Serial.print(now.month(), DEC);
	Serial.print('/');
	Serial.print(now.date(), DEC);
	Serial.print(' ');
	Serial.print(now.hour(), DEC);
	Serial.print(':');
	Serial.print(now.minute(), DEC);
	Serial.print(':');
	Serial.print(now.second(), DEC);
	Serial.print(' ');
	Serial.print(weekDay[now.dayOfWeek()]);
	Serial.println();
	Serial.print("Seconds since Unix Epoch: "); 
	Serial.print(ts, DEC);
	Serial.println();
    }
    delay(1000);
}

So it is basic program and i want to use time numbers individualy.

i want to use time numbers individualy.

You don't say what you want to use the individual digits but if you need to isolate them you can do it using integer division and the modulo operator

void setup()
{
  Serial.begin(115200);
  for (int hour = 0; hour <= 23; hour++)
  {
    Serial.print(hour);
    Serial.print("\t");
    Serial.print(hour / 10);
    Serial.print("\t");
    Serial.println(hour % 10);
  }
}

void loop()
{}