By: Scythe
Date: 2006-02-21
Time: 01:49
|
Date/Time with AM/PM
Is there anyway with the FRM tag to have the time to include AM/PM?
I know it currently has it as military time...
Thanks
|
By: Skrol29
Date: 2006-02-21
Time: 02:10
|
Re: Date/Time with AM/PM
Hello,
I'm sorry, it is not supported yet. You have to do it with a custom "onformat" function.
|
By: Scythe
Date: 2006-02-21
Time: 02:59
|
Re: Date/Time with AM/PM
Thanks for the reply Skrol. I'll see what I can do ;)
Btw, awesome class you wrote.
|
By: pf
Date: 2006-03-30
Time: 04:51
|
Re: Date/Time with AM/PM
I added this today as I didn't like the 24 hour format.
find
elseif (strcasecmp(substr($FrmStr,$i,2),'hh' )===0) { $FrmPHP .= 'H'; $FrmLOC .= '%H'; $i += 1; }
|
add this two right after it
elseif (strcasecmp(substr($FrmStr,$i,1),'h' )===0) { $FrmPHP .= 'g'; $FrmLOC .= '%g'; }
elseif (strcasecmp(substr($FrmStr,$i,1),'a' )===0) { $FrmPHP .= 'A'; $FrmLOC .= '%A'; }
|
Then in you format insted of hh:mm use h:mm a
|
By: Scythe
Date: 2006-03-30
Time: 07:34
|
Re: Date/Time with AM/PM
Thanks so much PF, this is awesome.
|
By: pf
Date: 2006-03-30
Time: 16:59
|
Re: Date/Time with AM/PM
I agree TBS is the best! I am just learning but it is amazing how much faster it makes things. I use to code and html all in one.
|
|
Posting in progress.
Please wait...
|