Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

Change date format to yyyymmdd (no slashes)

Change date format to yyyymmdd (no slashes).
Best I can do it set to yy/mm/dd - which results in yyyy/mm/dd output.
It will not let me set the format to exclude the slashes.

I tried with JS, but can not seem get it to work.

Can anyone share how to do the JS for this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Change date format to yyyymmdd (no slashes)

You can parse the string to remove the slashes.

Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

Change date format to yyyymmdd (no slashes)

Hi Max,

Thanks... I have been trying to do that.
I am sure my issue is that I do not know how to get the app value into the Javascript and then back into the app.

The variable name is settings_date

I tried:

settings_date.replace(/\//g,"");

but that did not work.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Change date format to yyyymmdd (no slashes)

Hi Everyone,
hv similar matter.
I want to display in a label the _createdAt which I get from the appery DB.
how/where shall I insert my code to have a simpler format like "yy/mmm/dd hr:min" i/o the all including seconds and millisec. ?
thk you very much in advance,
Eric

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Change date format to yyyymmdd (no slashes)

Hi Eric,

You can add your code to service response mapping as follows:
http://devcenter.appery.io/documentat...

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Change date format to yyyymmdd (no slashes)

Thks for your prompt fdbk. I'll check this out.

Return to “Issues”