Function : Time

ConvertTextToTIMEDATE - Converts a character time/date string to TIMEDATE.
----------------------------------------------------------------------------------------------------------

#include <misc.h>

STATUS LNPUBLIC ConvertTextToTIMEDATE(
const void far *IntlFormat,
const TFMT far *TextFormat,
char far * far *Text,
WORD MaxLength,
TIMEDATE far *retTIMEDATE
);

Description :

This function converts a character time/date string into Domino binary TIMEDATE format.

You may also optionally request a non-standard format for the time/date string by setting up a TFMT or INTLFORMAT structures. Use NULL if the standard "current" settings are acceptable.


Parameters :

Sample Usage :

   /* Build a time/date string & convert to binary TIMEDATE structure*/

  strcpy(td_string1, "07");
  strcpy(&td_string1[strlen(td_string1)], intl_format.DateString);
  strcpy(&td_string1[strlen(td_string1)], "04");
  strcpy(&td_string1[strlen(td_string1)], intl_format.DateString);
  strcpy(&td_string1[strlen(td_string1)], "91 4");
  strcpy(&td_string1[strlen(td_string1)], intl_format.TimeString);
  strcpy(&td_string1[strlen(td_string1)], "30 PM EST");
  td_string_ptr = &td_string1[0];

  if (error_status = ConvertTextToTIMEDATE(&intl_format, &td_format,
                                   &td_string_ptr, strlen(td_string1),
                                   &binary_td1))
      goto Exit;


See Also :

ConvertTIMEDATEToText
----------------------------------------------------------------------------------------------------------