Date-Time Format (YYMMDDHHMMSS) 
Author Message
 Date-Time Format (YYMMDDHHMMSS)

Folks,

Does anyone have some code that will take a date input such as "April 4,
1999" and time "14:04:03" and convert it into the following format?
                YYMMDDHHMMSS

thanks,

Kevin Rea
Lucent Technologies



Sat, 22 Sep 2001 03:00:00 GMT  
 Date-Time Format (YYMMDDHHMMSS)
Why not write some? You would then be on-topic.

Parenthetically, yipes -- a two-digit year?
--

Paul Lutus
www.arachnoid.com

Quote:

>Folks,

>Does anyone have some code that will take a date input such as "April 4,
>1999" and time "14:04:03" and convert it into the following format?
>                YYMMDDHHMMSS

>thanks,

>Kevin Rea
>Lucent Technologies




Sat, 22 Sep 2001 03:00:00 GMT  
 Date-Time Format (YYMMDDHHMMSS)

 >      [...]
 > Folks,
 >
 > Does anyone have some code that will take a date input such as "April 4,
 > 1999" and time "14:04:03" and convert it into the following format?
 >                YYMMDDHHMMSS

Yes.  I say this authoritatively, not hypothetically.

_________________________
Steven K. Hoskin
Compaq Computer Corporation
SSDEVO System Manager



Sun, 23 Sep 2001 03:00:00 GMT  
 Date-Time Format (YYMMDDHHMMSS)

Quote:

>Folks,

>Does anyone have some code that will take a date input such as "April 4,
>1999" and time "14:04:03" and convert it into the following format?
>                YYMMDDHHMMSS

#include <stdio.h>

char *ConvDate(const char *, const char *);

int main(void)
{
  char Date[] = "April 4, 1999";
  char Time[] = "14:04:03";
  char Result[13];

  strcpy(Result, ConvDate(Date, Time);
  printf("Result = %s\n", Result);
  return 0;

Quote:
}

char *ConvDate(const char *date, const char *time)
{
  static char YYetc[] = "YYMMDDHHMMSS";
  return YYetc;
Quote:
}



Mon, 24 Sep 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. get systemdate "YYMMDDHHMMSS" format

2. C time/date to Visual Basic time/date

3. Date Time Picker - Date AND Time

4. Can I convert time formats from yymmddhhmmss <--> UNIX formats?

5. Formatted compile date and time?

6. Formatted __DATE__ and __TIME__ strings?

7. change date time format

8. Date / Time Formatting Help

9. Formatted compile date and time?

10. Formatted __DATE__ and __TIME__ strings?

11. Format date and time

12. HELP!! Date time format

 

 
Powered by phpBB® Forum Software