Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8529377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:01:29+00:00 2026-06-11T09:01:29+00:00

I have in my app activity two textviews one with date(yyyy-mm-dd ) and one

  • 0

I have in my app activity two textviews one with date(“yyyy-mm-dd “) and one with time(“hh:mm”)

How can i make a string that combines these textviews together so my String will be (yyyy-mm-dd hh:mm) so that i can sort datetime text values in my sqlite database.

code for date textview:

String date = ((TextView) findViewById(R.id.dateTV))
            .getText().toString();

code for time textview:

String time= ((TextView) findViewById(R.id.timeTV))
            .getText().toString();

How to make String datetime tha combines them in one line/fast?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:01:31+00:00Added an answer on June 11, 2026 at 9:01 am

    Concatenate with a plus-sign

      String datetime = ((TextView) findViewById(R.id.dateTV)).getText().toString() + ((TextView) findViewById(R.id.timeTV)).getText().toString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that uses the Graph API to post activity to a
I have an app that contains several activities...so lets say user is navigating activity
I have an app that displays a splash screen. The splash screen activity creates
I have an app that, after some clicking, shows activity with news contents. I
I have an android app where in my Main activity I can play music
I am working on an android app that has two activities. One is the
I have some code that gets two Time Picker's content and displays them individually
In my Android app, I have a tabbed Activity . In one of the
For an Android app...I have a button on an Activity that calls a custom
I have this code: package com.powergroupbd.timer; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.CountDownTimer;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.