Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Dan Bracuk
Redesign your database and store dates as dates instead of strings.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:I thought that I did solve it. Use format(now(), 'm-d-yyyy') to give you your current date in a text format. Oh, I made an error on my previous example since dateCol was already a string.
If anyone can solve my default time issue mentioned above, that would be great too
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: EvolvedDSM
I appreciate the help Phil.
Ideally, Dan is correct above in that I should use date-type columns for dates. Using date-type values, I have more options for manipulating my data in coldfusion.
My real issue is that I cannot pass Date() data to my access db without losing the time component. You see, Date() in Flex gives me the current day's date in this format: Tue May 13 15:17:35 GMT-0400 2008
When I pass this to my db, it stores at 5-13-2008 and loses the time completely. Then when I call this column, I get 5-13-2008 00:00:00 AM. I have tried altering the mask format of the field to use 'General Date', which formats as M-D-YYYY H:MM:SS TT (example 5-13-2008 3:17:35 PM), however because of the awkward format that Date() gives, I think the time is lost.
There's not much documentation on Flex date/time stuff, nor are there examples using access db's. I hope this is just a problem with access though, as I plan on using SQL for our bigger apps.
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more