Browse Dialog, RegEx and Customize DateTime


Author
Message
Eduardo
Eduardo
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 12, Visits: 80
Hello!

I'm new to Straframe and need to customize a browse dialog, more specifically the column for DateTime. Currently appears something like dd / mm / yyyy hh: mm: ss and need only to dd / mm / yyyy.
From what I understand, you must use RegEx for this, but I can not find me to do this. What should I do to customize this column?

All suggestions are welcome.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Eduardo,



First, welcome to the StrataFrame forums! In regards to your question, the good news is that the date is going to be configurable in any circumstance here.



1. If you are referring to the search fields, then this will actually be pulled from the globalization settings on the machine.

2. If you are referring to the display in the results, you don't actually need to use RegEx, just do the following within your results layout for the date field:



{0:dd/MM/yyyy}




You would obviously replace the "0" with the appropriate field in your display fields. Also, when you apply formatting for a month in any area of .NET, a capital "MM" will give you month values where a lower case "mm" will give you minutes. Just FYI.
Eduardo
Eduardo
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 12, Visits: 80
Thanks Trent, worked perfectly! BigGrin

Is there a session in Strataframe documentation that demonstrates how to customize the Format String?
I'm also booted in VB.NET (I was Clarion programmer) and I do not know if this is a feature of Strataframe or VB.NET

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Really this is just a .NET thing. But it is something that you will see us go over from time to time on the forum as well as training sessions. Before you ask, we have not yet scheduled the next training class...but be on the lookout on the website BigGrin
Eduardo
Eduardo
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 12, Visits: 80
Thanks Trent! BigGrin
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem Smile
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Bem vindo Eduardo! Cool
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Ivan George Borges (02/05/2010)
Bem vindo Eduardo! Cool




Humm, we could say the same to you Ivan w00t Where have you been? BigGrin

Edhy Rijo

Eduardo
Eduardo
StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)StrataFrame Beginner (16 reputation)
Group: Forum Members
Posts: 12, Visits: 80
Obrigado Ivan!
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Edhy Rijo (02/05/2010)
Ivan George Borges (02/05/2010)
Bem vindo Eduardo! Cool


Humm, we could say the same to you Ivan w00t Where have you been? BigGrin

Enjoying the brazilian beaches... yeah, right, if only... Tongue

Just going mad around here, Edhy. Miss being active on the Forum, bu I was dealing with some other projects last year that kept me away from my .NET developing projects. Anyway, back to the desktop.

Hope you are doing well!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search