CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Customize date format input to be flexible
Pages: [1]

Author Topic: Customize date format input to be flexible  (Read 1065 times)

trimtri

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Joomla! 1.5.23
  • PHP version: 5.2.15
Customize date format input to be flexible
July 03, 2010, 08:34:12 pm
Can CiviCRM accept any kinds of date format in date field? For example, in one date field, can I input year only, or month and year, or day and month and year?

If not, can I customize to make CiviCRM accept more flexible date format input?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Customize date format input to be flexible
July 04, 2010, 06:17:13 am
Quote
Can CiviCRM accept any kinds of date format in date field? For example, in one date field, can I input year only, or month and year, or day and month and year?

Yes, you can create custom data of type Date with desired date formats that are supported by CiviCRM.

Hth
Kurund
Found this reply helpful? Support CiviCRM

trimtri

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Joomla! 1.5.23
  • PHP version: 5.2.15
Re: Customize date format input to be flexible
July 05, 2010, 01:02:07 am
To be clear, in custom field of date, you can only choose one predefined date format. I want, for example, in one birthday field, can accept three date format: year only (when you only know the year of birthday), or month and year (when you know only month and year of birthday, but don't know the day), or day and month and year (28/08/1971). You can make three fields with three different date formats for birthday, but you can not do this for just one field of birthday.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Customize date format input to be flexible
July 05, 2010, 02:14:53 am
Quote
You can make three fields with three different date formats for birthday, but you can not do this for just one field of birthday.
Right

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Customize date format input to be flexible

This forum was archived on 2017-11-26.