Spec-Zone.ru › ColdFusion

parseDateTime

Parses a date/time string according to the English (U.S.) locale conventions. (To format a date/time string for other locales, use the LSParseDateTime function.)

parseDateTime(dt_string [, pop_conversion]) → returns date

  • CF
  • Lucee
  • BL 1.0.0+
  • Argument Reference

    dt_string string
    Required

    pop_conversion string
    Default: standard

    - standard: function does no conversion. - pop: specifies that the date/time string is in POP format, which includes the local time of the sender and a time-zone offset from UTC. ColdFusion applies the offset and returns a value with the UTC time.- Apart from these two values, this parameter allows you to directly specify the format in which to parse the given string.
    Values:
    • standard
    • pop

    Examples
    Sample code invoking the parseDateTime function

    Tag Example

    <cfset dateTimeVar = #dateTimeFormat(now(), "yyyy.MM.dd HH:nn:ss ")# /> 
     <cfoutput> 
     #parseDateTime(dateTimeVar)# 
     </cfoutput> 

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/parsedatetime

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API