Questions tagged [date-conversion]

Conversion of dates from one calendar or notation to another, for example, converting Julian calendar February 29, 1700 to Gregorian calendar March 11, 1700, or "March 11, 1700" to "1700-03-11".

688 questions
-3
votes
1 answer

Convert String date in Basic ISO 8601 format to a custom format, in Java

I want to convert a date that I receive as a parameter as follows: String fecha = "yyyymmdd"; ----- Received as a parameter. convert it to "yymmdd", i did it with SimpleDateFormat, but it doesn't work for me, it tells me that the conversion is not…
-3
votes
1 answer

Convert French Date to English Date C#

I have object that contains french date and i want to vert it to english date Exp: from 21/01/1990 00:00:00 to 1990-01-21 00:00:00 This my code to convert the date but didn't work because the output is 21/01/1990 00:00:00, meaning it didn't convert…
taniiit
  • 41
  • 5
-3
votes
1 answer

How to convert time and date to the sentences format in C or C++?

For example the program gets time and date from the system Date : 17/05/2018 Time: 20:15:55 Output Date: seventeenth of may two thousand and eighteen Time: twenty past fifteen Can i use strftime?
Mochni
  • 13
  • 8
-3
votes
1 answer

Get last day of the month from '2015-02-23' string (javascript)

I have a string that represents a date in this format: 2015-02-23 I need to use this date to get the last day of the month. How should I do the necessary conversions to achieve that?
thiago
  • 377
  • 5
  • 20
-4
votes
1 answer

How to get the date from the given string in c#

I only need date from this string Wed, 02/05/2020 - 12:31 what format should I use whenever I am using {MM/dd/yyyy} I am getting the same value if there is any other way please let me know item.changed=Wed, 02/05/2020 - 12:31 `if…
-4
votes
1 answer

Convert Character to date

I have looked into some of the earlier answers but non of them solves my problem so here it is. The data that I'm having is in the this format ( D-M-Y H:M) and this is a character variable. This is the data set 23-03-2019 21:35 23-03-2019…
user11139847
-4
votes
3 answers

Convert date string from "ddMMM" into "yyyy-MM-dd" using Java 8

We have a requirement of converting date string "ddMMM" into "yyyy-MM-dd". For example: "30SEP" -->"2019-09-30" and "15JAN" --> "2020-01-15" (if the date is in past for current year then take next years date)
-4
votes
1 answer

Convert "using excel method" numeric value in date - java

I have an integer that when I put on Google Sheets, it represents the date 14/10/1911 (integer value is 4305). I need to do this same conversion in my code using Java. So I'll have an array of integer that goes down by a factor of 1 (like 4305,…
Lucas Heise
  • 139
  • 3
  • 12
-4
votes
3 answers

Long date conversion

I recently started supporting a system/application written in java. I need to convert the below long date to a readable date as in 21 October 2016 : Login date : 634940995544109969 Logout date : 63494125060775764 I tried different codes,I don't…
TMAN-MAN
  • 141
  • 1
  • 2
  • 13
-6
votes
4 answers

How to join integer value with character value

I want the date to display together with forward slash without any space. If I run the below program, it will only display month's value. Please help. int month, day, year; public int displayDate() { int date =…
-6
votes
1 answer

How to convert this date format "Sun Jul 13 2014 00:30:00 GMT+0530 (India Standard Time)" into a standard format "YYYY-m-d" using php

How to convert date format Sun Jul 13 2014 00:30:00 GMT+0530 (India Standard Time) to "YYYY-m-d"?
John
  • 129
  • 2
  • 3
  • 12
-7
votes
1 answer

Objective C Date Conversion From String

I am very new to Objective C. I am passing date in the format "YYYY-MM-DD" from webservice to apps (Objective C). How do I convert this to date format in Objective C? Some help would be appreciated. :) Regards, SG
TECH-SOS
  • 21
  • 1
  • 4
1 2 3
45
46