I have a cell in Google Sheets, with =NOW()
formula in it. All I need - to get the value, generated by formula (22.01.2014 15:23:51), not the formula by itself.
If I try: var nowtime = SpreadsheetApp.getActiveSheet().getRange('A1').getValues();
,
I get ={DATE(2014\1\22)+TIME(15\19\13)}
, but not the numbers.
How to do it with Google Script syntax?