Skip to content
Andrew Lambert edited this page Mar 15, 2017 · 16 revisions

#libcURL.ParseDate

Method Signatures

 Protected Function ParseDate(RawDate As String, ByRef Parsed As Date) As Boolean
 Protected Function ParseDate(DateItem As Date) As String

Parameters

###ParseDate(String, Date)

Name Type Comment
RawDate String The date string to parse
Parsed Date Passed by reference, the Date object to parse the RawDate into

###ParseDate(Date)

Name Type Comment
DateItem Date A Date object to convert to a RFC5322 timestamp

Return value

###ParseDate(String, Date) Returns True if the date was parsed, otherwise returns False.

ParseDate(Date)

A string containing a RFC5322 timestamp. For example, Sun, 06 Nov 1994 08:49:37 GMT. This value may be used in HTTP headers, etc. that call for a timestamp.

Remarks

This pair of methods convert between Date objects and strings containing a corresponding timestamp. Valid for dates between Thu, 01 Jan 1970 00:00:00 GMT and Tue, 19 Jan 2038 03:14:07 GMT.

###ParseDate(String, Date) Parses the passed date string into the referenced Date object. If parsing was successful, returns True and instantiates the passed date reference; else, returns false.

###ParseDate(Date) Converts the Date object into a RFC5322 timestamp

See also

Clone this wiki locally