Home > Tutorial > Blogger Fixed Length Date Format
Blogger Fixed Length Date Format
Posted on Friday, May 20, 2011 by android apps market for tablests
If you choose your date to show in this format --> "Thursday, January 20, 2011", the length of this field will vary for different dates. For example, compare "Wednesday, September 14, 2011" and "Friday, May 6, 2011". In this tutorial, I'll show you how you can easily alter the date format to show in a fixed length size.
Why does it matter? It doesn't. I spent hours to come up with this solution, and self-taught some Java to myself along the process. Answers like these are too good not to be shared here. Well, that and you get a fixed size for your date field, something that might help you shape your template in your own way.
That will be all folks. Cheers and God bless.
Why does it matter? It doesn't. I spent hours to come up with this solution, and self-taught some Java to myself along the process. Answers like these are too good not to be shared here. Well, that and you get a fixed size for your date field, something that might help you shape your template in your own way.
Step 1:
Make sure you're using the right Date format.
If you're using the old Blogger Interface: Go to Dashboard - Settings - Formatting - Date Header Format - Choose the fifth option from the drop down menu - Save Settings.
If you're using the old Blogger Interface: Go to Dashboard - Settings - Language and formatting - Date Header Format - Choose the fifth option from the drop down menu - Save Settings.
Make sure you're using the right Date format.
If you're using the old Blogger Interface: Go to Dashboard - Settings - Formatting - Date Header Format - Choose the fifth option from the drop down menu - Save Settings.
If you're using the old Blogger Interface: Go to Dashboard - Settings - Language and formatting - Date Header Format - Choose the fifth option from the drop down menu - Save Settings.
Step 2:
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) - Check the box next to 'Expand Widget Templates' -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed - Check the box next to 'Expand Widget Templates' -
Find and delete the following tag:
The right tag to be deleted, in place (might be different in your template)
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) - Check the box next to 'Expand Widget Templates' -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed - Check the box next to 'Expand Widget Templates' -
Find and delete the following tag:
<data:post.dateHeader/>If you find the same tag twice in the same template, ignore the one that has the word 'mobile' anywhere around it.
The right tag to be deleted, in place (might be different in your template)
Step 3:
Paste the following lines in place of the deleted tag above:
Paste the following lines in place of the deleted tag above:
<script type="text/javascript">var str='<data:post.dateHeader/>';var southerns=str.split(" ");var day=southerns[0].split("");var month=southerns[1].split("");document.write(day[0] + day[1] + day[2] +"," + " " + month[0] + month[1] + month[2] + " " + southerns[2] + " " + southerns[3]);</script>
The code in place:That will be all folks. Cheers and God bless.
Category Article Tutorial
Powered by Blogger.
Blog Archive
-
▼
2011
(4034)
-
▼
May
(56)
- May Reflections
- The Penelopiad
- The Sunday Salon: Week in Review #22
- June Reading List
- Library Loot: Fourth Trip in May
- The Last Chronicle of Barset
- The Miles Between (YA)
- Peony
- A House Divided
- The Virginian
- Some Buried Caesar
- What Happened To Goodbye (YA)
- The Sunday Salon: Week in Review #21
- Library Loot: Third Trip in May
- Meme: A Book Lover's Survey
- Blogger Fixed Length Date Format
- Bumped (YA/Adult) (Some spoilers)
- The Throne of Fire (MG)
- Dueling Authors: Jane Austen vs. Charles Dickens
- The Silent Speaker
- Sunday Salon: Week in Review #20
- Library Loot: Second Trip in May
- Blogger Post Title Changes Color on Post Page
- Kinfolk
- Sons
- Black Orchids
- Track the Time You Spend onEach Website with Chrom...
- [Tablet] Acer ICONIA TabA500 to be priced Rs 27,99...
- [Tablet] Acer ICONIA TabA500 to be priced Rs 27,99...
- [Tablet] Acer ICONIA TabA500 to be priced Rs 27,99...
- 20 Bookmarklets asAlternative to PopularExtensions...
- Gmail Enables Storing upto25,000 Contacts! [3 GBSt...
- [Alert] LastPass Security Compromised! Users Advis...
- 3D Globe shows GoogleSearch Volumes byLanguage!
- Download Twitter BasedInstant Messenger for YourDe...
- Customize Your Google Reader Layout with Reader Plus
- Get Rid of Autorun Virus withUSB Immunizer
- [Online Tip] Send yourself anEmail in the future!
- [Internet Censorship] MozillaQuestions US Departme...
- Windows 7 and Windows VistaGadgets
- Google Makes Searching forImages Easy with Sort by...
- Microsoft to Buy Skype for$8.5 Billion
- The Good Earth
- Google I/O: countdown to the keynote kickoff
- Share and personalize your Google Goggles experien...
- The Story of Britain
- Sunday Salon: Week in Review #19
- Happy Mother's Day!
- One book, two book, three book, four...
- Library Loot: First Trip in May
- Google Earth optimized for Android-powered tablets
- East Wind: West Wind
- Stay (YA)
- Google Voice and Sprint integration is live
- City of Fallen Angels (YA)
- Sunday Salon: Week In Review #18
-
▼
May
(56)



