logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AlanZ  
#1 Posted : Thursday, December 15, 2016 5:59:42 PM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 44 time(s) in 37 post(s)
Is there a list of date and time format templates for titles?\
I looked but can't seem to find it.

{0:hh:mm tt} is doing fine for the time e.g., 04:57 PM

I guessed at two variants for date (documentation would help a lot, so any help finding it is appreciated)

{0:M/dd/yyyy} yields 12/14/2016

{0:M dd, yyyy} yields 12 14, 2016

I am looking for something that spells out the month name, e.g., December 14, 2016

doggy  
#2 Posted : Thursday, December 15, 2016 6:12:18 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,095
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 922 time(s) in 761 post(s)
AlanZ  
#3 Posted : Thursday, December 15, 2016 6:24:44 PM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 44 time(s) in 37 post(s)
I found some formatting information on a .NET page

https://msdn.microsoft.c...(v=vs.110).aspx#MonthDay

I almost have what I want with a single format command
{0:f} yields

Wednesday December 14, 2016 5:21 PM

Is there any easy way to suppress the day of week, yet keep the month spelled out?
doggy  
#4 Posted : Thursday, December 15, 2016 6:34:26 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,095
Belgium
Location: Belgium

Thanks: 284 times
Was thanked: 922 time(s) in 761 post(s)
{0:MMMM dd, yyy h:m tt}

AlanZ  
#5 Posted : Thursday, December 15, 2016 10:10:43 PM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 44 time(s) in 37 post(s)
Thanks Doggy,

I tweaked it to account for single digit minutes (adds a leading zero)

{0:MMMM dd, yyy h:mm tt}
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.