katycorp
15 years agoVisitor
Time Formatting
Hi there,
I have a quick question about time formatting. I'm trying to display a roDatetime with just the time formatting, but that doesn't seem to be one of the four options available to the asDateString() function. So instead I'm using the getHours() and getMinutes() functions to create it myself (doing my own check to convert the 24 hour clock to am/pm). However, when I print out the return value for these functions in the terminal, or explicitly convert them to strings for use in the short description field, there is always a space before the actual integer. Is this a bug or expected behavior?
Thanks,
Kaitlin
I have a quick question about time formatting. I'm trying to display a roDatetime with just the time formatting, but that doesn't seem to be one of the four options available to the asDateString() function. So instead I'm using the getHours() and getMinutes() functions to create it myself (doing my own check to convert the 24 hour clock to am/pm). However, when I print out the return value for these functions in the terminal, or explicitly convert them to strings for use in the short description field, there is always a space before the actual integer. Is this a bug or expected behavior?
Thanks,
Kaitlin