Format date field to blank

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
dceglenski
Posts: 2
Joined: Tue Oct 10, 2017 12:44 pm

Format date field to blank

Post by dceglenski » Thu Sep 25, 2003 10:17 am

How do you format a report date field to blank or spaces when the database stores the date in it^s default value of 01/01/01. ____Thanks for helping out a newbe!____dc

Thomas_Freitas_(Guest)
Posts: 123
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Format date field to blank

Post by Thomas_Freitas_(Guest) » Thu Sep 25, 2003 10:23 am

I^m not exactly sure what it is you are looking for, but a blank date can be made by the following:____{//}__dtoc(" / / ")____By the way, you should convert all your dates to 4 digit years if you have not done so yet!

dceglenski
Posts: 2
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Format date field to blank

Post by dceglenski » Tue Sep 30, 2003 11:23 am

The data in the database is stored as 01/01/0001. On the report I want the value to be spaces if the date is 01/01/0001. Most reporting tools support this kind of logic, (Crystal, SAS, etc.) I have not been able to find this kind of support in R&R.

rickwjohnson
Posts: 49
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Format date field to blank

Post by rickwjohnson » Tue Sep 30, 2003 12:10 pm

Assuming the date field (d_date) is a character field, I would create a conditional if statement:____iif(d_date ="01/01/0001", space(10), d_date)____So, if the d_date is the default, you get 10 spaces, else you get the d_date. ____Rick Johnson__

Post Reply