Questions tagged [formatting]
The process of transforming text or data for presentation. A typical example would be the transformation of a decimal into a particular currency format with the correct number of decimal places.
formatting
13,842
questions
0
votes
2
answers
51
views
Is there any method to convert a varchar with specific format into time in Oracle SQL?
I have a table with three columns, one of the columns ateststatus_date has the following format: e.g:
28-MAY-24 11.57.20.000000 PM
and it's defined as varchar(2). I used To_date() and ...
0
votes
0
answers
16
views
What is the name for the time duration format like "8h 3m 4s" (as opposed to 08:03:04)?
Usually you see time durations listed using colons, like "08:03".
However that's also often ambiguous -- is that 8 hours and 3 minutes, or 8 minutes and 3 seconds? It also doesn't extend ...
0
votes
3
answers
114
views
Join texts and optimize formatting
I have text objects (text1, text2, etc) with formatting information (eg. [bold, italic]). Now I want to concat these texts and format them in HTML.
For a simple case it would transform the following
...
0
votes
2
answers
29
views
How to create an input field with a predefined format where users can only type in specific parts of the field
I have a basic HTML input field (for phone numbers), that currently lets the user type and submit whatever they want inside:
923-98-Ilovekittens :3
However, I want the field to look like this:
+1 (...
0
votes
0
answers
16
views
Why are the YAML highlight options not being reflected in my HTML that is knitted from and RMD?
I am working in r studio. For my college class, we're working in rmd files and then knitting them to html files. Each rmd file starts with YAML options that setup the document. The document has no ...
2
votes
1
answer
41
views
Calling ToString with own IFormatProvider doesn't work
This is about IFormattable and IFormatProvider. For sure one can achieve a reversed string representation of value 123 otherwise...
Every C# base data type implements the IFormattable interface. So ...
0
votes
0
answers
63
views
Python Pandas reads inconsistent date formats from Excel files generated automatically with a 3rd part API
I'm using the PDF4me API to convert PDF invoices into Excel files. The dates are read correctly by the API. However, when I open the Excel files, the dates are displayed inconsistently:
Some dates ...
0
votes
2
answers
110
views
How to format user input double in TextField as and when being entered by user in Flutter?
I'm trying to display the user input double (may be without decimal dot and that follows) number as a formatted value e.g. 123456789012.1234 as 12345,67,89,012.1234 using not the western numbering ...
0
votes
0
answers
19
views
Conditionally Apply Latex Commands [closed]
I am new to Latex and looking for some guidance.
I would like to have a variable I can set in my document to mark it as draft or as final
If it is draft I would like to be able to set a watermark for ...
0
votes
2
answers
39
views
f-strings: Skip thousands delimiter (comma) for four digits (1000); limit comma to five or more digits
I have a paper where the editors request I remove thousands separators (comma) for four digit-numbers. I used f-strings:
form=",.0f"
format(123456, form)
> '123,456'
format(1234, form)
&...
1
vote
0
answers
27
views
Date as number/text in YYYYMMDD format, but Excel won't format? [duplicate]
I'm working with a JSON dataset that presents dates as numbers in a column like so: 20190611, meaning it should be 2019-06-11. What can I do to get Excel to format these dates? Normal formatting doesn'...
0
votes
1
answer
14
views
Is there a way to format a LocalDate to take just the month and year
I have a spring boot app that I want the admin to be able to get the system report based on the month and year selected. System report in this case is the number of sales that was made in the selected ...
2
votes
1
answer
43
views
Scala f interpolator formatting for Java LocalDate
I'd like to be able to format strings based on Java.LocalDate using the f interpolator, i.e. something like:
val = LocalDate.of(2024,7,28)
f"$dt:YYYY-MM-dd"
But this will give a compile ...
-4
votes
0
answers
56
views
To make a Letterhead consisting of Company Name, Logo, Address using Python , PDFminer, Regex , Canvas, ReportLab and any other tools
Create a letterhead in pdf format,using python in which we can use pdfminer,extract text ,regex, and any other tools as such.That letterhead should contain name, logo of that company and company ...
0
votes
1
answer
37
views
XmlHttpRequest file (image) <=> raw data reformatting?
I have downloaded some basic image somewhere from google:
this picture looks like:
then I use this httprequest to read and save raw data of the image:
var xhr = new XMLHttpRequest;
xhr.open(&...