This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Helper_Form_DateTime

Direct known subclasses

FormDateTimeHelper

Package: Helpers\Forms
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/helpers/form/date_time.php

Methods summary

public string|false
# translate( string $field, array $arr = null )

Takes a "field" and grabs all the corresponding disparate fields from $_POST and translates into a timestamp

public
# datetime( string $prefix, string $value = null, boolean $includeActivation = false, boolean $calendarAutoStart = true )

Creates form fields and JavaScript calendar includes for a particular item

$dateHelper->datetime('yourStartDate', '2008-07-12 3:00:00');
public
# date( string $field, string $value = null, boolean $calendarAutoStart = true, boolean $calendarAutoStart,… )

Creates form fields and JavaScript calendar includes for a particular item but includes only calendar controls (no time.)

$dateHelper->date('yourStartDate', '2008-07-12 3:00:00');