Re: Date Formating

2017-12-13 Thread Vino via Digitalmars-d-learn
On Wednesday, 13 December 2017 at 17:16:46 UTC, Vino wrote: On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom wrote: [...] Hi All, [...] Hi All, Thank you very much , was able to resolve the issue by changing the writefln line as below. Sorted[].sort!((a,b) =>

Re: Date Formating

2017-12-13 Thread Vino via Digitalmars-d-learn
On Wednesday, 13 December 2017 at 08:32:34 UTC, codephantom wrote: On Wednesday, 13 December 2017 at 07:35:40 UTC, Jonathan M Davis wrote: In general, you probably want to cast the SysTime to a DateTime if you're going to do something like that. yes, I would agree ;-) Of course the intention

Re: Date Formating

2017-12-13 Thread codephantom via Digitalmars-d-learn
On Wednesday, 13 December 2017 at 07:35:40 UTC, Jonathan M Davis wrote: In general, you probably want to cast the SysTime to a DateTime if you're going to do something like that. yes, I would agree ;-) Of course the intention was not really to just format it the same way as Clock.currTime()

Re: Date Formating

2017-12-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, December 13, 2017 02:34:12 codephantom via Digitalmars-d-learn wrote: > On Tuesday, 12 December 2017 at 15:56:59 UTC, Vino wrote: > > Hi All, > > > > Request out help on date formatting, I have code which output > > > > the date and time as below , i we need it without the last

Re: Date Formating

2017-12-12 Thread codephantom via Digitalmars-d-learn
On Tuesday, 12 December 2017 at 15:56:59 UTC, Vino wrote: Hi All, Request out help on date formatting, I have code which output the date and time as below , i we need it without the last few numbers.,ie "-MMM-DD HH:MM:SI" Output : 2017-Sep-06 16:06:42.7223837 Required Output :

Re: Date Formating

2017-12-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, December 12, 2017 15:56:59 Vino via Digitalmars-d-learn wrote: > Hi All, > >Request out help on date formatting, I have code which output > the date and time as below , i we need it without the last few > numbers.,ie "-MMM-DD HH:MM:SI" > > Output : 2017-Sep-06 16:06:42.7223837

Re: Date Formating

2017-12-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/12/17 10:56 AM, Vino wrote: Hi All,   Request out help on date formatting, I have code which output the date and time as below , i we need it without the last few numbers.,ie "-MMM-DD HH:MM:SI" Output : 2017-Sep-06 16:06:42.7223837 Required Output : 2017-Sep-06 16:06:42 You

Re: Date Formating

2017-12-12 Thread Vino via Digitalmars-d-learn
On Tuesday, 12 December 2017 at 16:01:49 UTC, Adam D. Ruppe wrote: On Tuesday, 12 December 2017 at 15:56:59 UTC, Vino wrote: Request out help on date formatting, I have code which output the date and time as below , i we need it without the last few numbers.,ie "-MMM-DD HH:MM:SI" Just

Re: Date Formating

2017-12-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 12 December 2017 at 15:56:59 UTC, Vino wrote: Request out help on date formatting, I have code which output the date and time as below , i we need it without the last few numbers.,ie "-MMM-DD HH:MM:SI" Just slice it off. x[0 .. x.lastIndexOf("."];

Date Formating

2017-12-12 Thread Vino via Digitalmars-d-learn
Hi All, Request out help on date formatting, I have code which output the date and time as below , i we need it without the last few numbers.,ie "-MMM-DD HH:MM:SI" Output : 2017-Sep-06 16:06:42.7223837 Required Output : 2017-Sep-06 16:06:42 From, Vino.B