Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I have two simple but tricky questions when dealing with the field formulas.
1) I want my dates to display Am and PMs but not Military time.
I have used following field formula to do that, but what i see is ... 13:30PM-14:30 pm like that!!!
but i need 1:30PM-2:30PM likewise....
can anybody help me!!!
2) second one is------------->>>>
I have to display Days as M-MOnday,T-tuesday ...like wsie
in a row as 'MT....'
what I have to do is i have to put a comma between them if more than one day exists..like M','T...
and if only one field exists then this comma should not appear.
the code is as follows::
if {@mon} <> ' ' or {@tues} <> ' ' or {@wed} <> ' ' or {@thurs} <> ' ' or {@fri} <> ' ' or
{@sat} <> ' ' or {@sun} <> ' ' then
totext({@mon}) + totext({@tues}) + totext({@wed}) + totext({@thurs}) + totext({@fri}) +
totext({@sat}) + totext({@sun})
else
"TBA"
I have to add a comma if more than one day exists!!!
help appreciated
I have two simple but tricky questions when dealing with the field formulas.
1) I want my dates to display Am and PMs but not Military time.
I have used following field formula to do that, but what i see is ... 13:30PM-14:30 pm like that!!!
but i need 1:30PM-2:30PM likewise....
can anybody help me!!!
2) second one is------------->>>>
I have to display Days as M-MOnday,T-tuesday ...like wsie
in a row as 'MT....'
what I have to do is i have to put a comma between them if more than one day exists..like M','T...
and if only one field exists then this comma should not appear.
the code is as follows::
if {@mon} <> ' ' or {@tues} <> ' ' or {@wed} <> ' ' or {@thurs} <> ' ' or {@fri} <> ' ' or
{@sat} <> ' ' or {@sun} <> ' ' then
totext({@mon}) + totext({@tues}) + totext({@wed}) + totext({@thurs}) + totext({@fri}) +
totext({@sat}) + totext({@sun})
else
"TBA"
I have to add a comma if more than one day exists!!!
help appreciated