SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio

Notices

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
Prev Previous Post   Next Post Next
  #1  
Old 01-04-2021, 01:00 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,326
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?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.