function date_api_date_time_lookup in Date 6.2
Return the date for a given format string via Ajax.
1 string reference to 'date_api_date_time_lookup'
- date_api_menu in ./
date_api.module - Implementation of hook_menu().
File
- ./
date_api.module, line 2569 - This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.
Code
function date_api_date_time_lookup() {
$result = date_format_date(date_now(), 'custom', $_GET['format']);
echo drupal_to_js($result);
exit;
}