Forum Discussion
- QuickBaseCoachDQrew CaptainToTimestamp([my date field],[My time of day field])
- DerekAndersonQrew MemberAlso use Date / Time formula field
- ElenaLarrabee1Qrew CaptainHi, I keep getting an error when I try to do this? It tells me it was "expecting a datetime..." Any ideas?
- QuickBaseCoachDQrew CaptainElana,
I suggest that you post a new question along with your current formula which is not working. - ElenaLarrabee1Qrew CaptainThanks, I got it figured out. :)
- ChrisNewsomeQrew CaptainCan you tell us how you solved it? I am having the same issue.
- QuickBaseCoachDQrew CaptainToTimeStamp([my date field], [my timeofday field])
- ChrisNewsomeQrew CaptainSo what type do I set this to? If I choose "Date" I get the error "expecting date but found datetime" and if I set to time, I get "expecting time but..."
I'm trying to get the calendar reports to place the events in their time slot, but we use separate date / time fields.
- QuickBaseCoachDQrew CaptainLook further down the field list for the formula field types.
- ChrisNewsomeQrew CaptainThe picture has the whole list for a calculated column.
- ChrisNewsomeQrew CaptainI did follow the advice of creating a new field though and that worked.
- FrancescoSpiga1Qrew Cadetcan I use this formula to do something like the below?
ToTimestamp([my date field],"7:00")
what would the correct syntax be? - QuickBaseCoachDQrew CaptainToTimeStamp([my date field],ToTimeOfDay("7:00"))
- FrancescoSpiga1Qrew CadetThanks for your quick reply. What if I would like to add 1 day to [my date field]?
ToTimeStamp([my date field]+1,ToTimeOfDay("7:00")) - QuickBaseCoachDQrew CaptainToTimeStamp([my date field]+Days(1)),ToTimeOfDay("7:00"))
or you could also do
ToTimeStamp([my date field],ToTimeOfDay("7:00")) + Days(1)
either will work so use the one that makes more sense to you.