Click here to Skip to main content
15,885,980 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: RE: software Pricing Pin
Richard MacCutchan21-Jun-20 21:49
mveRichard MacCutchan21-Jun-20 21:49 
GeneralRe: RE: software Pricing Pin
Ron Anders20-Jun-20 2:26
Ron Anders20-Jun-20 2:26 
GeneralRe: RE: software Pricing Pin
Maximilien20-Jun-20 4:13
Maximilien20-Jun-20 4:13 
GeneralRe: RE: software Pricing Pin
F-ES Sitecore20-Jun-20 5:30
professionalF-ES Sitecore20-Jun-20 5:30 
GeneralRe: RE: software Pricing Pin
PIEBALDconsult20-Jun-20 7:12
mvePIEBALDconsult20-Jun-20 7:12 
GeneralRe: RE: software Pricing Pin
samtoad20-Jun-20 7:55
samtoad20-Jun-20 7:55 
GeneralRe: RE: software Pricing Pin
kalberts20-Jun-20 8:21
kalberts20-Jun-20 8:21 
GeneralRe: RE: software Pricing Pin
PIEBALDconsult20-Jun-20 8:33
mvePIEBALDconsult20-Jun-20 8:33 
I'm sure you're proud of it, but don't expect many (particularly on a site of developers) to be likewise impressed.


samtoad wrote:
supports 148 different date formats

samtoad wrote:
can perform date conversion from one to another date format


These statements are already red flags for me. They imply that you have grabbed the wrong end of the stick.

One big issue with "conversion from one to another date format" is that having dates and times as strings within an application is generally going to lead to trouble. It is far better to parse into a structure, use it, then format it if necessary.

The main thing to consider is how we might convert a date/time "from one to another date format" with .net (if we ever actually wanted to do that at all).
.net provides System.DateTime and System.DateTimeOffset structures, each with a few methods for parsing strings, and each with a ToString Method.
Those methods take parameters for specifying the format.
See also Custom date and time format strings | Microsoft Docs[^]
This is a very flexible way of doing this and much better than hard-coding "148 different date formats".
The application developer is able to specify those few formats the application may require.
The application can parse an incoming value, use it as needed, then only format it into a string when it comes time to output it.


Plus the fact that it's written in C and is expected to be distributed by DLL means that it isn't multi-platform.
Will you compile and provide versions for other Operating Systems?
Many of us on CodeProject use .net and that means that we'd have to use P/Invoke to call your routines -- but, of course, we'd use the built-in routines instead.


Dates and times are not strings, you need to stop thinking of them as strings.
GeneralRe: RE: software Pricing Pin
DerekT-P3-Jul-20 9:41
professionalDerekT-P3-Jul-20 9:41 
GeneralRe: RE: software Pricing Pin
Gerry Schmitz20-Jun-20 8:00
mveGerry Schmitz20-Jun-20 8:00 
GeneralRe: RE: software Pricing PinPopular
kalberts20-Jun-20 8:53
kalberts20-Jun-20 8:53 
GeneralRe: RE: software Pricing Pin
Mike Winiberg21-Jun-20 20:35
professionalMike Winiberg21-Jun-20 20:35 
GeneralRe: software Pricing Pin
Member 1243898521-Jun-20 21:21
Member 1243898521-Jun-20 21:21 
GeneralRe: RE: software Pricing Pin
Simon_Whale20-Jun-20 8:58
Simon_Whale20-Jun-20 8:58 
GeneralRe: RE: software Pricing Pin
#realJSOP21-Jun-20 1:19
mve#realJSOP21-Jun-20 1:19 
GeneralRe: RE: software Pricing Pin
enhzflep21-Jun-20 13:57
enhzflep21-Jun-20 13:57 
GeneralRe: RE: software Pricing Pin
dandy7222-Jun-20 4:22
dandy7222-Jun-20 4:22 
GeneralRe: RE: software Pricing Pin
Member 1330167921-Jun-20 23:39
Member 1330167921-Jun-20 23:39 
GeneralRe: RE: software Pricing Pin
kalberts22-Jun-20 0:47
kalberts22-Jun-20 0:47 
GeneralRe: RE: software Pricing Pin
Member 1330167922-Jun-20 3:41
Member 1330167922-Jun-20 3:41 
GeneralRe: RE: software Pricing Pin
kalberts22-Jun-20 4:17
kalberts22-Jun-20 4:17 
GeneralRe: RE: software Pricing Pin
Member 1330167922-Jun-20 4:35
Member 1330167922-Jun-20 4:35 
GeneralRe: RE: software Pricing Pin
DanW5222-Jun-20 2:21
professionalDanW5222-Jun-20 2:21 
GeneralRe: RE: software Pricing Pin
kalberts22-Jun-20 3:31
kalberts22-Jun-20 3:31 
GeneralRe: RE: software Pricing Pin
DanW5222-Jun-20 5:22
professionalDanW5222-Jun-20 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.