HOW TO CONVERT ONE DATE FORMAT TO ANOTHER IN A COLUMN IN EMEDITOR - emeditor

I have a File in Emeditor with date column with "December 30, 2021" & "2021-12-30" formats and i want to convert the entire column to "dd/mm/yyyy". How do i convert the entire column to my preferred format? Can you create a Macro for me?

Please make sure to update EmEditor version to the latest version including beta versions (v21.5.905 or later).
Select a column you want to normalize dates.
Press Ctrl+H to bring up the Replace dialog box.
Click Number Range to bring up the Enter Number Range dialog box.
Click Date/times, clear Use default date format check box, and enter yyyy-MM-dd|yyyy-M-d|MMMM dd, yyyy|MMMM d, yyyy below the check box. These are the date formats you want to search for, combined with a pipe (|).
Enter appropriate dates in Minimum number and Maximum number (optional), and click OK.
In the Replace dialog box, make sure the In the Selection Only option is set.
Enter \D dd/MM/yyyy in the Replace with box. This is a resultant date format.
Click Replace All.
If you prefer macros, you can write and run a macro like this:
document.selection.Replace("[1900-01-01 , 2100-12-31 \"yyyy-MM-dd|yyyy-M-d|MMMM dd, yyyy|MMMM d, yyyy\" ]","\\Ddd/MM/yyyy",eeFindReplaceSelOnly | eeReplaceAll,eeExFindNumberRange);
To run this, save this code as, for instance, NormalizeDate.jsee, and then select this file from Select... in the Macros menu. Finally, select Run NormalizeDate.jsee in the Macros menu. You must select a column before you run this macro.
References:
Number Range Expression Syntax
EmEditor v21.6 beta
Updates
As of v21.5.906 or later, please remove a space after /D.

Related

Is there a way to prevent input if today's date is the same or later than the date in an adjacent cell?

Using Google Sheets, is there a way to prevent a user from adding contents to a cell or changing the contents if today's date is the same or later than the date in an adjacent cell?
For example:
I'd suggest using data validation. Set your range (eg: Sheet1!B1:B), choose 'custom formula' from the dropdown and use this formula
=today()>$A1
Then select 'Refuse input' when invalid data is entered.
Another possible solution would be to use Google Script.
I hope this helps?

Oracle Apex - Download CSV produces an empty report

I am currently using Oracle Apex version 18.2.0.00.12 on Internet Explorer on a computer running Windows 10.
I am having a problem with downloading an Interactive Grid as a CSV file.
On my Apex page I have an interactive grid and three page items. Two of the page items, P200_DATE_FROM and P200_DATE_TO, are Date Picker items. The other item is a button named "Submit" and its action is "Submit Page".
This is the query for my interactive grid:
select * from kat_test
where repairdate between :P200_DATE_FROM and :P200_DATE_TO;
There are four columns in the Interactive Grid:
Issue - Varchar2
Month - Number
Week - Number
Repairdate - Date
The only settings I changed in the Interactive Grid are the title and the SQL query.
I changed the Source of P200_DATE_FROM to PL/SQL Expression that returns the first day of the current month. It is set to be used "Only when the current value in session state is null". The expression is:
trunc(last_day(sysdate)-1, 'mm')
I changed the Source of P200_DATE_TO PL/SQL Expression that returns the current date. It is also set to be used "Only when the current value in session state is null". The expression is:
sysdate
When I run the page, it loads exactly as expected in the sense that the P200_DATE_FROM page item is populated with the first date of the current month, the P200_DATE_TO item is populated with the current date, and the interactive grid displays the correct data.
The problem: When I select Actions -> Download -> CSV, the CSV file downloads and opens as an Excel file, BUT only the header names are displayed. The cells underneath the headers are all empty. However, if I change one of the dates (or both) in the P200_DATE_FROM page item and/or the P200_DATE_TO page item and then press the submit button, the page is submitted and then when I click Actions -> Download -> CSV, the Excel file opens and all of the data is displayed perfectly (both the column headers and the data underneath the headers).
I don't understand why when I initially load the page, the CSV file for the Interactive Grid does not download correctly, but after I click the submit button the CSV file does download correctly.
Does anyone have any ideas?
Thank you in advance.
I think you just need to put the name of these items in the field "Items to submit" next to your SQL. When it downloads, I think it reprocesses SQL using the values ​​of the items that are in the session. If you do not put those items there, the values ​​do not go to the session. Enter the item names separated by a comma. After that, I think any changes is necessary in your SQL
Report's query, probably, contains a WHERE clause which looks like this:
where some_date between :P200_DATE_FROM and :P200_DATE_TO
Modify it so that includes NVL function whose second parameter reflects items' default values, i.e.
where some_date between nvl(:P200_DATE_FROM, trunc(last_day(sysdate)-1, 'mm'))
and nvl(:P200_DATE_TO, sysdate)
Run the page, download CSV; any improvement?

DataGrip column picker

Is it possible to use a column picker in JetBrains DataGrip? I was not able to use this feature in DataGrip. For instance, sql complete contains this feature: sql complete column picker image.
Currently, there is no feature like this in DataGrip. I can offer you a couple of workflows:
— Use code completion, it is really fast. Once you have the table in your query (typing SEL → Tab activates Live Template for SELECT query), start typing column names in the list and completion will prompt you column names.
— Use wildcard and then expand it by Alt+Enter → Expand column list. Yo will get the whole column list, just remove unnecessary ones.
— If you need to have a result with some columns, not all of them, press Ctrl+F12 on the result-set. Then you'll get a popup where you can show/hide columns with Space. Notice, that text speed search works there as well. See Operations with columns in the structure view.
All of them are shown in the attached gif file.

TIBCO spotfire date filter control - apply greater than date expression on date filter control

I am a sportfire beginner and just learned to customize Date filter using below URL,
Spotfire Calendar Filter
Just want to filter and display report data (report mapping column : LastModifiedDate) greater than date based on this filter date selected value.
Please help.
From the main tool bar: Insert > New Text Area
From the text area: Right Click > Edit Text Area
Then, Click the Insert Filter button. If you don't see it, click the >> button on the top right to see all of your options.
Select the column which contains your dates. Click Ok.
From the text area: Right Click > Un-select Edit Text Area
Tibco's Documentation lists in detail how to accomplish most everything you need. Be sure to keep this reference handy. About 3/4 of the way down on this specific page you'll see instructions on how to do what I listed above.
I added 2 Date text filters on the text Area.
Image
As you can see there is one filter text for the start date and one for end date.
Exist any possibility to use then as a range filter because they only filter matching equal date. I want to use them as minimum(start date) and maximum date(end date).
Example:
Text filter 1 : 10/10/2000
Text filter 2 : 09/09/2015
Result : all records between the 2 dates.

PPT Timestamp Autoupdate with formatting

In ppt we can possible create a footer timestamp, however what I need is just 'mmm YYYY', which is not provided by the ppt default options. Is it possible to access it and type in my own formatstring? Many Thanks.
In PowerPoint 2013, go to INSERT tab, then select Header & Footer, then you will see a dialog like this:
Here you should tick Date and time, then choose Fixed and edit your own footer, then select Apply to All.
After this, you will see all your slides are embedded with your own footer, a sample is attached below:
In the Header and Footer dialog box, when you put a check next to Date and time and choose Update automatically, the first choice on the dropdown listbox is the Windows short date format. If you customize this in Control Panel to mmmm YYYY, it will show August 2014 in PowerPoint.
Of course this will only work on your system. When you move it to another computer, it'll use that computer's default short date format.

Resources