1. djay
  2. General
  3. Thursday, April 17 2014, 09:19 AM
Hi

Admin

How to display only time using "date" field type.
Example -- 12:40 pm
I am creating astrological website where 2 fields are required

"Date of Birth"
"Time of Birth"
I don't know how to configure time format

http://www.php.net/manual/en/datetime.format.php

I have tried but unsucessful

Thanks
Djay
Accepted Answer
admin Accepted Answer
Admin
Hi,
easy profile not have a time field,

solution 1:
but you can use text field with Custom Format parameter set to
([0-1]?[0-9]|[2][0-3]) : ([0-5][0-9])
*** remove the spece from code, I add this because the forum render emoticon
and set format on custom like screenshot. now this field will only accept time like (H:MM or HH:MM)

solution 2:
use select field, you must insert all value of time of span like:
00:00|00:00
00:30|00:30
01:00|01:00
01:30|01:30
....
23:00|23:00
23:30|23:30
Attachments (1)
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Here reference for regex for time: http://regexlib.com/DisplayPatterns.aspx?cattabindex=4&;categoryId=5&AspxAutoDetectCookieSupport=1
  1. more than a month ago
  2. General
  3. # 1
djay Accepted Answer
ok

thanx for your reply and help

Please include time field in feature request
  1. more than a month ago
  2. General
  3. # 2
snehakolte Accepted Answer
Yes, it would be great if we have a time field, I too need a time field.
  1. more than a month ago
  2. General
  3. # 3
admin Accepted Answer
Admin
Hi,
sorry but time is not a field type that relates to the user profiling.
  1. more than a month ago
  2. General
  3. # 4
snehakolte Accepted Answer
What of Time of Birth ? Isn't it a valid user profie field ?
  1. more than a month ago
  2. General
  3. # 5
admin Accepted Answer
Admin
Hi,
sorry but we think not. Anyway you can use the workaround explained in this topic.
  1. more than a month ago
  2. General
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.