Is there a core method in views that can pad numbers with leading zeros? Setup
I am building a view that outputs human usable id's. These ids would look best if padded to 3 characters. For example the episodes of a tv show may look best if they are formated:
01-01 (Season 1 episode 1)
10-05 (Season 10 Episode 5)
03-22 (Season 03 Episode 22)
Problem
In my node I'm storing a simple integer (1-100). I want to keep the value as an integer not a string. How do I pad the integer with leading zeros on output.
Using simple php would be a simple str_pad($value, 2, '0', STR_PAD_LEFT); but I do not want to execute php in my views or even enable the php module/filter.
Solution
The solution must:

Use a core ability of views
Not require me to execute php stored in the database (not enable php module or anything equivalent)
Must allow me to maintain the field as an integer input/storage

I could probably write the views plugin for this but I was hoping their was already something available like a views integer format or something like that.
Go to /sites/all/themes/yourtheme/ folder and in template.php add the following code:

function yourtheme_preprocess_views_view_fields($vars){

  if ($vars['view']-&gt;name == "view_name" &amp;&amp; $vars['view']-&gt;current_display == "block_1") {
    $vars['fields']['field_example']-&gt;content = str_pad($vars['fields']['field_example']-&gt;raw, 2, 0, STR_PAD_LEFT);
  }

}



replace yourtheme with the actual name of your theme
replace view_name with the name of your view.
replace block_1 with the machine name of your view. 
replace example with the name of your field (2 replacements). 


Lastly, in Drupal, clear/flush your cache to see the changes.