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 8207065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:53:07+00:00 2026-06-07T08:53:07+00:00

I have 2 Strings 2012-06-25 15:02:22.948 +0530 I need a new string which adds

  • 0

I have 2 Strings

  • 2012-06-25 15:02:22.948
  • +0530

I need a new string which adds the 5:30 to the time in the first string.

I thought I can do this by converting both strings to date objects and then adding. But i dont know how to do it, as when i use

yyyy MM dd hh:mm:ss as the date format for the first string, I get an error.

Thanks!

  • 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-07T08:53:08+00:00Added an answer on June 7, 2026 at 8:53 am

    You can merge both you string String1+string2 and can use format yyyy-MM-dd HH:mm:ss.SSSZ to parse the date. You can see more documentation here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a date string which looks like this: Thu Feb 09 2012 01:50:00
i have to make a program which can accept input like this: 2012-01-20 10:50:52
I have this string 2012-06-27 16:17:06 and I want to convert it to GMT
I have this string: var someString = 23/03/2012; and want to replace all the
I have a timedate string in a round-trip data pattern like this: 2012-07-05T11:30:44.1533815Z .
I have some strings like this: 2012-02-05T07:42:47.000Z mixed with other strings. It is always
I have date string 18-2-2012 , from this how to get the current day
I have this string in serialize format a:6:{s:5:width;i:452;s:6:height;i:336;s:14:hwstring_small;s:23:height='96' width='128';s:4:file;s:20:2012/01/Picture3_410_1325761656.jpg;s:5:sizes;a:8:{s:9:thumbnail;a:3:{s:4:file;s:35:Picture3_410_1325761656-162x160.jpg;s:5:width;i:162;s:6:height;i:160;}s:6:medium;a:3:{s:4:file;s:35:Picture3_410_1325761656-258x191.jpg;s:5:width;i:258;s:6:height;i:191;}s:8:post-top;a:3:{s:4:file;s:35:Picture3_410_1325761656-110x110.jpg;s:5:width;i:110;s:6:height;i:110;}s:9:post-tiny;a:3:{s:4:file;s:35:Picture3_410_1325761656-108x100.jpg;s:5:width;i:108;s:6:height;i:100;}s:9:post-item;a:3:{s:4:file;s:35:Picture3_410_1325761656-452x327.jpg;s:5:width;i:452;s:6:height;i:327;}s:11:post-review;a:3:{s:4:file;s:35:Picture3_410_1325761656-162x166.jpg;s:5:width;i:162;s:6:height;i:166;}s:9:post-poll;a:3:{s:4:file;s:35:Picture3_410_1325761656-285x237.jpg;s:5:width;i:285;s:6:height;i:237;}s:14:post-top-story;a:3:{s:4:file;s:35:Picture3_410_1325761656-300x130.jpg;s:5:width;i:300;s:6:height;i:130;}}s:10:image_meta;a:10:{s:8:aperture;i:0;s:6:credit;s:0:;s:6:camera;s:0:;s:7:caption;s:0:;s:17:created_timestamp;i:0;s:9:copyright;s:0:;s:12:focal_length;i:0;s:3:iso;i:0;s:13:shutter_speed;i:0;s:5:title;s:0:;}} which is used in wordpress
I have date strings in this form Thu Aug 02 00:00:00 GMT+00:00 2012 I
I have a string (ex: 2012-30-03 12:30), and I am trying to use the

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.