-
1. Re: Information on the Date property type
Bill RobinsonNov 8, 2013 7:14 AM (in response to richard mcleod)
What do you mean ‘date conversions on the fly’ ?
I believe the date needs to be like ‘mm/dd/yyyy hh:mm:ss’
-
2. Re: Information on the Date property type
richard mcleod Nov 8, 2013 10:22 AM (in response to Bill Robinson)Is there a function that I can supply various date formats to and it will output the proper format?
Looking at some of the other date fields they are formatted like this:
%b %d, %Y %I:%M:%S %p
so if I supplied the following would Blade convert to the proper format or do I need to convert before hand?
(input) 2013/11/08 11:30:23
(expected output) Nov 08, 2013 11:30:23 AM
-
3. Re: Information on the Date property type
Bill RobinsonNov 8, 2013 12:19 PM (in response to richard mcleod)
Zmodload zsh/datetime
Then look at strftime
-
4. Re: Information on the Date property type
richard mcleod Nov 8, 2013 12:29 PM (in response to Bill Robinson)yeah im using that already in my script to modify the outputs, just wondering if i have to put the date in a specific format to import as a server property. I'll just assume yes I need to format as per other date values and go for it
-
5. Re: Information on the Date property type
richard mcleod Nov 8, 2013 12:47 PM (in response to Bill Robinson)ah! learn from failure!
The proper way to format dates for input into a property with a type of DATE is....
%Y-%m-%d %H:%M:%S
Error Nov 8, 2013 1:43:21 PM Command execution failed. com.bladelogic.om.infra.model.typesystem.BlValueParseException: Unparseable date: "Unknown". Expected format is "yyyy-MM-dd HH:mm:ss"