Life Isn’t Fair Kyle Eggleston This life doesn’t always seem fair or feel fair. Life in general can be annoying at best. But what do you expect when that happens? I’ve been feeling sleepy as of late, I don’t know why that is. It just happens. I wish I didn’t feel so sleepy but I do and I must accept that. But back to life. Why does this life feel so difficult at times? I don’t understand why it does. There are so many thoughts and ideas out there that could be explained to us all, but they aren’t. That’s what bothers me most about this life. Being able to understand or comprehend everything that’s going on...you have to figure it all out on your own.
Been attempting to put a datetime variable into a MySQL Database via ColdFusion. For the life of me, I couldn't figure out what I was doing wrong.
At first I tried:
#createODBCDateTime(now())#
For some reason that was only giving me the date and not the time.
Then I tried splitting up the date and time into two different fields, one for the date and the other for the time. Then I tried this code:
#createODBCDate(now())#
#createODBCTime(now())#
That gave me the date, but still not the time. Well I did some searching and then found there's a built in function in MySQL to do this. Why not.
Talk about simple:
NOW()
Well guess what, it worked just like a charm.
Comments
Post a Comment