|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
How to display Date as MM/dd/YY (zero pad)
In Studio, I have:
DateFormat("MM/dd/yy", StartTime) It is displaying dates like 12/1/20 and 1/3/21 but I want it to be 12/01/20 and 01/03/21 Per the API it says: DateFormat public java.lang.String DateFormat(java.lang.String Format, java.lang.Object Date) Returns a formatted date string for the specified Date. Parameters: Format - null if SageTV's default date format should be used, otherwise use a formatting string as specified in java.text.SimpleDateFormat Date - either a java.util.Date object or a long which corresponds to the date Returns: the date formatted string From my understanding, SimpleDateFormat is suppose to be displaying MM/dd/yy as 12/01/20, 01/03/21, etc What am I missing? |
#2
|
|||
|
|||
I looked into the DateFormat code and there's special handling in there for localization:
Quote:
I don't claim to understand all of this completely but it's possible that what you are trying to do won't work.
__________________
Windows Installer |
#3
|
||||
|
||||
Thanks. That explains it.
Changing to MM-dd-yy works to have the padded zeros i.e. 12-01-20 and 01-03-21 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sorting based on released date and add to library date not working still | Gustovier | Diamond | 35 | 03-15-2011 12:45 PM |
How to Display Recordings by Recording Date & Original Air Date | joe123 | SageTV Customizations | 25 | 02-16-2010 05:28 AM |
Locale setting (date display) on HD200? | MrFusion | SageTV Media Extender | 0 | 10-18-2009 08:06 AM |
HD200 date/time display glitch | troycheek | SageTV Beta Test Software | 6 | 05-24-2009 05:34 PM |
SageTV display cutoff using secondary display | chrishallowell | SageTV Software | 1 | 02-09-2008 08:44 AM |